Добрый день! Который час бьюсь с проблемой, варианты решения иссякли. Есть конфиг nginx
upstream hello_app_server {
server unix:/webapps/app/run/gunicorn.sock fail_timeout=0;
}
server {
listen 8001;
server_name blabla.com;
client_max_body_size 4G;
access_log /webapps/app/logs/nginx-access.log;
error_log /webapps/app/logs/nginx-error.log;
location /static/ {
alias /webapps/app/prototype/staticfiles/;
}
location /media/ {
alias /webapps/app/prototype/media/;
}
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
if (!-f $request_filename) {
proxy_pass http://hello_app_server;
break;
}
}
}
И settings.py приложения
STATIC_ROOT = '/webapps/app/prototype/staticfiles/'
STATIC_URL = '/static/'
STATICFILES_DIRS = (
os.path.join(BASE_DIR, 'static'),
)
$ ls /webapps/app/prototype/staticfiles/
admin css djcelery js rest_framework