I have a fairly simple django project having some views, templates and static files like css and images. My settings file include :STATIC_ROOT = '/home/karambir/Codes/projects/cdi/cdi/static'STATIC_URL = '/static/'STATICFILES_DIRS = ('/home/karambir/Codes/projects/cdi/cdi/data',)TEMPLATE_DIRS = ('/home/karambir/Codes/projects/cdi/cdi/templates')So I serve static files with {{ STATIC_URL }} in the templates. And it is working fine when DEBUG is TRUE but every static file breaks when debug is set to false. Then I tried with django admin, it was also broken. So I run a ./manage.py collectstatic command. And then admin css works fine but my own files still not. I saw in the url of the loaded html page and it shows correct url and it is not loading.How can I know what is the main problem. What changes takes place when debug is set to false?(I'm running django1.4)Thanks--
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/-/fWCsL9PUI1EJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
I have a fairly simple django project having some views, templates and static files like css and images. My settings file include :STATIC_ROOT = '/home/karambir/Codes/projects/cdi/cdi/static'STATIC_URL = '/static/'STATICFILES_DIRS = ('/home/karambir/Codes/projects/cdi/cdi/data',)TEMPLATE_DIRS = ('/home/karambir/Codes/projects/cdi/cdi/templates')So I serve static files with {{ STATIC_URL }} in the templates. And it is working fine when DEBUG is TRUE but every static file breaks when debug is set to false. Then I tried with django admin, it was also broken. So I run a ./manage.py collectstatic command. And then admin css works fine but my own files still not. I saw in the url of the loaded html page and it shows correct url and it is not loading.How can I know what is the main problem. What changes takes place when debug is set to false?(I'm running django1.4)Thanks--
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/-/fWCsL9PUI1EJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/W-IOauTb9dQJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.