F
F
Firsak2018-06-16 12:52:13
Django
Firsak, 2018-06-16 12:52:13

Django doesn't load static. How to fix?

Hello.
When trying to transfer a django application to a vps, a problem arose that when debugging is disabled, static files are not loaded. I did one instruction:
https://www.digitalocean.com/community/tutorials/h...
It didn't work out.
Then here I saw a similar question that you need to load static Apache.
I did everything according to this manual:
https://www.digitalocean.com/community/tutorials/h...
But again, static does not work.
Let me know if anyone has come across.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Puma Thailand, 2018-06-16
@opium

Give statics to nginx

D
Dimonchik, 2018-06-16
@dimonchik2013

if you write

I made one instruction:
https://www.digitalocean.com/community/tutorials/h...
It worked.

will this solve your issue?

E
Egniel, 2018-06-19
@Egniel

Please, your constants from settings STATIC_ROOT, STATIC_URL, STATICFILES_DIRS
And nginx settings
We can’t guess the reason

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question