Your Static Dir is not defined in the Server (Nginx) configuration. So as Melvin said you'll need to create an alias for your static dir in your server configuration file.
On Sat, Aug 18, 2012 at 7:40 PM, Melvyn Sopacua <m.r.sopa...@gmail.com> wrote: > 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. > -- Thanks & Regards ---------------------------- Amyth [Admin - Techstricks] Email - aroras.offic...@gmail.com, ad...@techstricks.com Twitter - @a_myth_________ http://techstricks.com/ -- 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.