it works perfectly fine when running django webserver on my local machine (# python manage.py runserver), however when putting files on the server it doesn't work anymore. By opening source of the site I can see:
It works, but I'd like to do that in "official" way - using the static tags - "{% static 'css/blog.css' %}"
I've tried by changing and/or setting STATIC_URL, STATIC_ROOT, STATICFILES_DIRS and STATICFILES_FINDERS, but without any success story. Does any of you have any idea on how to get it working?
ludovic coues
unread,
Feb 12, 2017, 6:18:04 AM2/12/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Have you tried to run manage.py collectstatic ?
The devserver with debug serve static file from each app, but it
doesn't do it without debug.
The idea is that static files should be served directly by your server
or with a CDN and not requiring any CPU time from django.