Sunday, January 1, 2012

Re: Unable to display static content.

Now I have changed the project structure to

Project
-webApp
---static
-----images
-----stylesheets
-----index.html
---templates

I can browse to index.html inside static folder.

http://127.0.0.1:8000/static/index.html

For some reason, its adding the search-form to the URL for loading CSS
and Images when I browse to http://127.0.0.1:8000/search-form/

Firebug shows :
http://127.0.0.1:8000/search-form/common.css

Obviously then it won't find the resources.


--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment