开发者

Changing Django built in admin style sheet

I wish to change the built in blue colours开发者_如何学JAVA for the admin pages. I used Firebug in Mozilla to try and find the colours around different style sheets I found in the Django.1-3 folder, but none seem to come up.

In what directories would I find the .css files for pages that have the header dark blue colour and the light blue table captions colour?

What actions must I take in order for the changes to work(eg. move folder to main project folder)?


https://docs.djangoproject.com/en/1.3/howto/deployment/modwsgi/#serving-the-admin-files

The admin files live in (django/contrib/admin/static/admin) of the Django distribution.

You have the source. You can change these files.

One common approach is to (1) copy the static admin files to a separate directory that your web server can use, (2) configure your web server to serve these files, and (3) change your settings.py to reflect this new location for your admin media.

https://docs.djangoproject.com/en/1.3/ref/settings/#admin-media-prefix

No template changes are made.

Nothing needs to be moved into your "main project folder" (whatever that might be).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜