You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- handle new way to launch applications in django 1.4
- simplify the way we discover the project path and settings
- add --pythonpath & --settings options for django applications
- still compatible with older versions (>=1.1)
-handle DJANGO_SETTINGS_MODULE env.
close#283, #275, #274, #241
I have directory structure like this:
bin/gunicorn_django
project/foo/development.py
project/init.py
project/foo/init.py
This is created by buildout. And "project" dir is in PYTHONPATH.
Now, I try to run:
DJANGO_SETTINGS_MODULE=project.foo.development bin/gunicorn_django -b 127.0.0.1:8061
And it fails:
ImportError: Could not import settings 'foo.development' (Is it on sys.path?): No module named development
But when I comment out line https://github.com/benoitc/gunicorn/blob/0.13.1/gunicorn/app/djangoapp.py#L126 it works fine.
The text was updated successfully, but these errors were encountered: