Deploying Django application. http://tinyurl.com/odz9hfx
1. Install libapache2-mod-wsgi using apt-get utility.
2. Add below lines to /etc/conf/apache2.conf
WSGIScriptAlias / /home/notroot/django_tut/helloworld/helloworld/wsgi.py
WSGIPythonPath /home/notroot/django_tut/helloworld/
<Directory /home/notroot/django_tut/helloworld/>
<Files wsgi.py>
Order deny,allow
Require all granted
Satisfy Any
</Files>
</Directory>
3. reload apache2 "service apache2 reload"
4. access url/view from the browser example : http://127.0.0.1/helloworld
1. Install libapache2-mod-wsgi using apt-get utility.
2. Add below lines to /etc/conf/apache2.conf
WSGIScriptAlias / /home/notroot/django_tut/helloworld/helloworld/wsgi.py
WSGIPythonPath /home/notroot/django_tut/helloworld/
<Directory /home/notroot/django_tut/helloworld/>
<Files wsgi.py>
Order deny,allow
Require all granted
Satisfy Any
</Files>
</Directory>
3. reload apache2 "service apache2 reload"
4. access url/view from the browser example : http://127.0.0.1/helloworld
I am getting ImportError: No module named django.core.wsgi, referer: http://192.168.50.55/admin
ReplyDeleteHello, Check django installed properly in the enabled python path in apache
ReplyDelete