Nginx+Django Admin界面无样式问题

Django增加admin后台管理:


访问:http://mydomain/admin发现样式不正确,/static/admin/css/base.css这样的样式报404未找到错误!

继续测试:python manage.py runserver 0.0.0.0:8080 发现不经过nginx,样式是被加载的。文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/system/nginx-django-admin/

解决方法:


参考:http://www.cnblogs.com/fnng/p/3737964.html
参考:http://www.zhaofengcao.com/archives/2043
参考:http://wangye.org/blog/archives/572/
参考:http://blog.csdn.net/fengyu09/article/details/17923737
参考:http://lidongbest5.com/blog/1/
参考:http://django-chinese-docs.readthedocs.org/en/latest/intro/tutorial02.html
参考:http://www.educity.cn/wenda/117371.html文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/system/nginx-django-admin/ 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/system/nginx-django-admin/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

On this day in past years
July
4
 
Byrd
  • by Published onJuly 4, 2014
  • 原文链接:https://note.t4x.org/system/nginx-django-admin/
匿名

Comment

Anonymous

Slide puzzle verification.