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) Am referring this link: * https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#module-django.contrib.staticfiles *<https://docs.djangoproject.com/en/dev/ref/contrib/staticfiles/#module-django.contrib.staticfiles> =========================== 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 > > uWSGI - 1.2.5 > 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 > > > <https://lh5.googleusercontent.com/-4WWuUmXylqM/UC4R-sdwa6I/AAAAAAAACR0/EQA4I756zjg/s1600/django-default-Vs-uWSGI-r-FAPWS-output.png> > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/csaqJPUCltoJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.