R
R
Ruslan Bergutov2015-05-25 09:34:47
Django
Ruslan Bergutov, 2015-05-25 09:34:47

Did static paths break when deploying django?

When deploying the site on the server, the paths to static files broke, I tried to read the wsgi documentation, deploying statics, collectstatic, but I did not understand anything, can someone explain more popularly?
jino hosting

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
devel787, 2015-05-27
@devel787

Maxim Dunayevsky , you can do better.

location /static/ {
    alias /var/www/project/static/;
    expires 3d;
}

nginx.org/ru/docs/http/ngx_http_core_module.html#alias
nginx.org/ru/docs/http/ngx_http_core_module.html#root

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question