/home/bewater/django/foo_project/settings.py
/home/bewater/django/foo_project/bar_application/myprogram.p
y
'import settings', read the configuration from settings.py.
So if the
script is run from another directory that project's it
fails.
In my case, I need run program from an application
directory. How could
I 'import settings' in this case?
I tried the next, but nothing:
os.chdir('..'); import settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|