我刚刚在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/mediaHow 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更多推荐
发布评论