Rolling back to practice on old bugs

23 views
Skip to first unread message

Javis Sullivan

unread,
Mar 4, 2015, 4:30:54 PM3/4/15
to django...@googlegroups.com
I am following this tutorial here "Writing your first Django patch" and while it directs me to rollback to this 39f5bc7fc3a4bb43ed8a1358b17fe0521a1a63ac commit, when I do so I am not able to run the runtests.py script. I guess the directory structure or something has changed along the way, I assume. As I am getting the error below:

Traceback (most recent call last):
  File "runtests.py", line 327, in <module>
    options
.failfast, args)
 
File "runtests.py", line 153, django_tests
    state
= setup(verbosity, test_labels)
 
File "runtests.py", line 111, in setup
    from django.db.models.loading import get_apps, load_app
ImportError: No module named 'django.db.models.loading'



I poked around to see if I could find the loadings module but it is not longer there. Should I just practice on a recent bug? Because runtests.py does fine when the git head is located at the most recent commit. 

Collin Anderson

unread,
Mar 6, 2015, 7:57:23 PM3/6/15
to django...@googlegroups.com
Hi,

I always type: PYTHONPATH=.. ./runtests.py

Collin
Reply all
Reply to author
Forward
0 new messages