I want to access static files in views.py but it doesn't work when I use {% load static %} and {% static relative_path %} in the same way like in a template.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8b8d6254-f0f4-4e2f-8b4d-1c4bde5dc050%40googlegroups.com.
I want to access static files in views.py but it doesn't work when I use {% load static %} and {% static relative_path %} in the same way like in a template.
--
I want to access static files in views.py but it doesn't work when I use {% load static %} and {% static relative_path %} in the same way like in a template.
--
hi Guy,What's the structure of your project and the content of your settings.py?
Le mer. 25 déc. 2019 à 12:32, Guy NANA <guyros...@gmail.com> a écrit :
I want to access static files in views.py but it doesn't work when I use {% load static %} and {% static relative_path %} in the same way like in a template.--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d763222b-438b-49dc-8d98-5099913e89d2%40googlegroups.com.