No module named jiong.urls
Request Method: GET
Request URL:
http://localhost/Django Version: 1.4
Exception Type: ImportError
Exception Value:
No module named jiong.urls
Exception Location: /opt/server/lib/python2.7/site-packages/django/utils/importlib.py in import_module, line 35
Python Executable: /opt/server/bin/uwsgi
Python Version: 2.7.3
Python Path:
['/opt/server/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
'/opt/server/lib/python2.7/site-packages/pip-1.1-py2.7.egg',
'/opt/server/lib/python2.7',
'/var/www/jiong/jiong',
'/opt/python/lib/python27.zip',
'/opt/python/lib/python2.7',
'/opt/python/lib/python2.7/plat-linux2',
'/opt/python/lib/python2.7/lib-tk',
'/opt/python/lib/python2.7/lib-old',
'/opt/python/lib/python2.7/lib-dynload',
'/opt/python/lib/python2.7/site-packages',
'/opt/server/lib/python2.7/site-packages']
Server time: Mon, 30 Jul 2012 01:35:17 -0500
--------------------------------------------------
I just use nginx and uwsgi run django app, but this error occured, can someone help me solve it.
The following are steps I configure the django server:
1.compile and install python 2.7 with source code
2.install python-setuptools
3.then easy_install pip and virtualenv
4. create a virtual env use virtualenv server and let the python path as the previous compiled 2.7 version
5.activate the virtual enviroment. and then pip install uwsgi and django
6.run django-admin.py startprojects to add a new project called "jiong"
the new django 1.4 will generate a default wsgi.py file
6.edit nginx.conf and add a server item, then restart nginx
7. run uwsgi -s :9090 -M -p 4 -d /var/www/dddd2.log --vhost