I did following changes now., I still see the same observation - I suspect the img folder contents are not taken by webserver for some reason related to template tags not properly linked. any suggestion welcome.... (otherwise I think i need to go with apache + wsgi)
===========================
Added below settings under default (under /etc/nginx/conf.d & also under sites-enabled dir of nginx
----------------------------------------
listen <same port as wsgi>
servername localhost
location /static {
alias /home/keeran/Desktop/IT_mgmt/static/;
index index.html index.htm;
autoindex off;
=========================
Also, updated the
[uwsgi]
# set the http port
http = :8080
python_path = /home/keeran/Desktop/IT_mgmt/IT_mgmt/settings.py
# change to django project directory
chdir = /home/keeran/Desktop/IT_mgmt
# load django
module = IT_mgmt.wsgi
uwsgi --ini test.ini --enable-threads
On Friday, August 17, 2012 3:13:00 PM UTC+5:30, keeran wrote:
On the Django development server, django app works fine. But once I setup the
production test run, I get only the text contents, where template views are not
shown as intended. What am I going wrong?
I have django 1.5 latest.
Nginx - 0.8.54
Also tried FAPWS3.0 similar result;
cmd for uWSGI:
=============
sudo uwsgi --ini test.ini
test.ini content:
===============
[uwsgi]
# set the http port
http = :8080
python_path = /home/test/Desktop/IT_mgmt/IT_mgmt/
settings.py/# change to django project directory
chdir = /home/test/Desktop/IT_mgmt
# load django
module = IT_mgmt.wsgi
