M
M
michael ivanov2015-07-16 13:32:08
Django
michael ivanov, 2015-07-16 13:32:08

Why doesn't django pick up static files in production?

Why doesn't django pick up static files in production?
For the sake of experiment, I decided to transfer the Django site to production mode. I only changed the value of the DEBUG parameter and set '*' in ALLOWED_HOSTS
---
ALLOWED_HOSTS = [
'*',
]
---
After all these manipulations, static is not loaded. I ask for your help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-07-16
@pauchenkov

djanga doesn't deal with static - nginx setup
Carefully read why such a setting is needed
https://docs.djangoproject.com/en/1.8/ref/settings...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question