Nginx+Django Admin界面无样式问题

    Read

Django增加admin后台管理:


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

继续测试:python manage.py runserver 0.0.0.0:8080 发现不经过nginx,样式是被加载的。SourceByrd's Weblog-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.htmlSourceByrd's Weblog-https://note.t4x.org/system/nginx-django-admin/ SourceByrd's Weblog-https://note.t4x.org/system/nginx-django-admin/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!
Byrd
  • by Published on July 4, 2014
  • 原文链接:https://note.t4x.org/system/nginx-django-admin/
匿名

Comment

Anonymous

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: