Hi there,

I'm trying import a class definition in settings.py with:
from myapp.models import MyModel

But the compilation fails and I get the following error in the
console:
"Error: Can't find the file 'settings.py' in the directory containing
'E:\\workspace\\myproject\\manage.py'. It appears you've customized
things.
You'll have to run django-admin.py, passing it your settings module.
(If the file settings.py does indeed exist, it's causing an
ImportError somehow.)"

Apparently the problem is only when trying to import classes under
modules (apps). In fact, I've also got a file "local_settings.py" at
the project root, and the following import works (still in
settings.py):
from local_settings import *

Is that a pythonpath problem or something else? Unfortunately this
happens at compilation time so I can't debug.

Thank you!

Julien
--~--~---------~--~----~------------~-------~--~----~
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