Admin Css not served

Posted December 3, 2017 5k views

Path issue.
How to resolve
Nginx log
2017/12/03 17:06:10 [error] 3001#3001: *53342 open() “/usr/lib/python2.7/dist-packages/django/contrib/admin/static/admin//css/base.css” failed (2: No such file or directory), server: _, request: “GET /static/admin/css/base.css HTTP/1.1”,
How to remove this extra slash

theres no django in dist-packages
why and how?
pls help

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

You have to setup your nginx to SERVE static files and use the command collectstatic to copy all your apps’ /static folders to one combined folder nginx (or other server) will serve.