Answer the question
In order to leave comments, you need to log in
Djnago doesn't see static files?
In general, the problem was not solved, but what I noticed is strange, Django is trying to get these files in the wrong way.
for example
STATIC_URL = '/home/slon/env_slon/static/'
STATIC_ROOT = os.path.join(BASE_DIR, '/home/slon/env_slon/static/')
STATICFILES_DIRS = (
os.path.join(BASE_DIR, '/home/slon/env_slon/static/'),
)
**nginx
location /static {
root /home/slon/env_slon/static/;
try_files $uri =404;
expires max;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question