D
D
Dauren S2015-11-11 09:22:43
Django
Dauren S, 2015-11-11 09:22:43

Django 404 static files?

Put django on vps (apache) did collectstatic everything was copied. I went to the admin css is not displayed, and when I try to open css from the source code, I get a 404 error

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Chernousov, 2015-11-11
@dauren101

1. What mode is wsgi used to run?
2. Have you set the path to the static directory in apache?
3. Check the rights to static.
if mode_wsgi is used, then the config should look something like this:
ps. Tags pokotsalis, but I think the idea is clear.
WSGIScriptAlias ​​/ /opt/web/th22info/th22info/wsgi.py
Order deny,allow
Require all granted
Alias ​​/static/ /opt/web/th22info/static/
Order deny,allow
Require all granted

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question