R
R
Roma Zvarich2015-10-08 21:59:46
Django
Roma Zvarich, 2015-10-08 21:59:46

How to make server see static files (Django, Nginx, Gunicorn, Supervisor)?

Hello.
I am learning Django. Or rather, I’m trying, because it’s impossible to raise a server on a local computer with Ubuntu in a human way.
Compiled several instructions for myself. I took the main part from Djbook
But I still have a problem : the server after the initial setup (and command ./manage.py collectstatic) does not see static files . Even the admin login page (localhost:8000/admin) doesn't display styles.
I'm not talking about static files in the "static" folder of applications.
---> The current version of my instructions <---
I beg your help. I'm suffering for 3 days. My SSD will soon run out of life from OS reinstalls.
vtZzcWa.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
un1t, 2015-10-08
@hisbvdis

It looks like you have registered the wrong folder in the nginx config.
The collectstatic command at the end shows which folder everything was copied to. Check if it matches what is in the nginx config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question