On 17-8-2012 11:43, 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 First of all: mkdir <the directory you name as STATIC_DIR in IT_mgmt/settings.py> cd /home/test/Desktop/IT_mgmt && python manage.py collectstatic
Then in nginx.conf: location /static { alias <that same STATIC_DIR>; } -- Melvyn Sopacua -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.