django,找不到静态文件404

时间:2018-07-29 21:54:35

标签: django nginx

nginx中的静态文件出现错误

INSERT INTO [dbo].[Time] 
    SELECT DENSE_RANK() OVER (ORDER BY [YEAR], [MONTH]) , [YEAR] , [MONTH] 
    FROM (SELECT DISTINCT [YEAR], [MONTH] 
        FROM [dbo].[yearclass]
    ) yearmonthclass;

这是我的Nginx配置:

custom_main.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)

我该怎么办?


upd: server { listen 80; server_name 94.154.13.214; location = /favicon.ico { access_log off; log_not_found off; } location /static/ { root /root/django_direct/main_app/; } location / { include proxy_params; proxy_pass unix: /root/django_direct/django_direct.sock; } }

settings.py

0 个答案:

没有答案