Is there any reason whenever I add an app to my application using
"python manage.py startapp", add the app name to my INSTALLED_APP,
sync my database, and restart my application, I get the 502 Bad
Gateaway Error? I didn't have this problem locally.
The debugger returns this for an app called moh. Is the fact that 'env/
hello/moh' is not in the path the reason? Application is installed in
'env/hello'
ImportError at /
No module named moh
Request Method: GET
Django Version: 1.3
Exception Type: ImportError
Exception Value:
No module named moh
Exception Location: /home/domain/env/lib/python2.7/site-packages/
django/utils/importlib.py in import_module, line 35
Python Executable:
Python Version: 2.7.0
Python Path:
['env/',
'.',
'',
'/home/domain/env/lib/python2.7/site-packages/distribute-0.6.24-
py2.7.egg',
'/home/domain/env/lib/python2.7/site-packages/pip-1.0.2-py2.7.egg',
'/home/domain/env/lib/python27.zip',
'/home/domain/env/lib/python2.7',
'/home/domain/env/lib/python2.7/plat-linux2',
'/home/domain/env/lib/python2.7/lib-tk',
'/home/domain/env/lib/python2.7/lib-old',
'/home/domain/env/lib/python2.7/lib-dynload',
'/opt/python2.7/lib/python2.7',
'/opt/python2.7/lib/python2.7/plat-linux2',
'/opt/python2.7/lib/python2.7/lib-tk',
'/home/domain/env/lib/python2.7/site-packages']
Server time: Thu, 23 Feb 2012 23:22:47 -0600
--
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 http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment