默认Django 1.5 admin css无法正常工作(Default Django 1.5 admin css not working)

编程入门 行业动态 更新时间:2024-10-22 23:42:51
默认Django 1.5 admin css无法正常工作(Default Django 1.5 admin css not working)

我刚刚在ec2上安装了我的django 1.5应用程序,现在该网站的/ admin部分没有css。 有没有办法可以配置它?

只是为了添加到这个,css文件位于以下文件夹中: /usr/local/lib/python2.6/dist-packages/django/contrib/admin/static/admin/css$

I just installed my django 1.5 app on ec2 and right now the /admin portion of the site doesn't have css. Is there a way that I can configure this?

Just to add to this the css files are located in the following folder: /usr/local/lib/python2.6/dist-packages/django/contrib/admin/static/admin/css$

最满意答案

你是如何配置它的? 要使管理员应用程序加载静态文件,您需要在应用程序的static目录中创建符号链接。 你做过这个吗?

ls -l应该给出类似的东西:

admin -> /usr/local/lib/python2.6/dist-packages/django/contrib/admin/media

How did you configure it? For admin app to load static files, you need to create a symbolic link inside your app's static directory. Have you done this?

ls -l should give something like:

admin -> /usr/local/lib/python2.6/dist-packages/django/contrib/admin/media

更多推荐

本文发布于:2023-08-07 06:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1462644.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:无法正常   工作   admin   Django   working

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!