Hi, Make sure these requirements: https://docs.djangoproject.com/en/3.0/howto/static-files/
On Wed, Dec 25, 2019, 19:32 Guy NANA <[email protected]> wrote: > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/8b8d6254-f0f4-4e2f-8b4d-1c4bde5dc050%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/8b8d6254-f0f4-4e2f-8b4d-1c4bde5dc050%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP5HUWqq-m%3D%2BoGMNoczCCabhbmieTbZEw9WQt-xxhU-JOxAW1Q%40mail.gmail.com.

