K
K
Konstantin Gorodetsky2017-03-22 03:36:30
Django
Konstantin Gorodetsky, 2017-03-22 03:36:30

Why doesn't static work in django?

The project is deployed on a remote server (apache + mod_wsgi) - it works STATIC_URL = '/static/'.
On the local machine ( manage.py runserver) works STATIC_URL = 'static/'
Why so?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Sh, 2017-03-22
@Deq56

You need to give the statics separately
. in apache you need to write something like:
Alias ​​/static /doc/root/static

D
devalone, 2017-03-22
@devalone

Use nginx for static

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question