Indeed it helped. Thanks a lot, Karen.

2009/8/10 Karen Tracey <[email protected]>:
> 2009/8/10 Filip Gruszczyński <[email protected]>
>>
>> Hi!
>>
>> I would like to run django source code tests, but as soon as I do it
>> (after specifying the settings file), I get all kinds of exceptions.
>> Any idea, what am I doing wrong? I post the exceptions below.
>>
>> grusz...@gruszczy-laptop:~/django/tests# PYTHONPATH=..
>
> You appear to be on a Unix-y platform so you'll need to export PYTHONPATH:
>
> export PYTHONPATH=..
>
> so that the setting will be inherited by the runtests script.
>
>>
>> grusz...@gruszczy-laptop:~/django/tests# ./runtests.py --settings=settings
>> Error while importing defer:  File "./runtests.py", line 134, in
>> django_tests
>>    mod = load_app(model_label)
>> File "/var/lib/python-support/python2.6/django/db/models/loading.py",
>> line 72, in load_app
>>    mod = __import__(app_name, {}, {}, ['models'])
>>  File "/root/django/tests/modeltests/defer/models.py", line 6, in <module>
>>    from django.db.models.query_utils import DeferredAttribute
>> ImportError: cannot import name DeferredAttribute
>
> Notice you are running the tests in /root/django/tests/ but the Django code
> that has been found is /var/lib/python-support/python2.6/django.
>
> This is a symptom of your PYTHONPATH setting not working, and all the import
> errors are likely due to your trying to run new tests against an old level
> of the code.  DeferredAttributed no doubt didn't exist in
> django.db.models.query_utils in whatever version of Django you have
> installed in /var/lib/python-support.
>
> Fix the PYTHONPATH setting and things should go better.
>
> Karen
>
> >
>



-- 
Filip Gruszczyński

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to