如何在管理员登录名和管理员页面中将“ Django管理”名称更改为自定义名称 [英] How to change 'Django Administration' name to a custom name in admin login and admin page

查看:240
本文介绍了如何在管理员登录名和管理员页面中将“ Django管理”名称更改为自定义名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图将django管理的名称更改为自定义名称。有什么办法可以完全自定义管理页面,使其外观更专业

I am trying to change the name of django administration to custom name how do i do that.Is there any way completely customize the admin page give it more professional look

推荐答案

有几种方法可以自定义Django管理员。

There are several ways to customize the Django admin.

首先,您始终可以覆盖任何模板(请参阅docs: https://docs.djangoproject .com / en / 1.6 / intro / tutorial02 /#customize-the-admin-look-feel 实际上就是以这种情况为例)

First of all, you can always override any template (see docs : https://docs.djangoproject.com/en/1.6/intro/tutorial02/#customize-the-admin-look-and-feel it is actually using this very case as example)

从Django 1.7开始,可以通过以下设置进行访问: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#adminsite-attribute

Starting with Django 1.7, it will be accessible via settings : https://docs.djangoproject.com/en/dev/ref/contrib/admin/#adminsite-attributes

最后,您可以使用管理员皮肤应用程序,例如精彩的Grappelli wich alrea dy提供了类似的设置: http://django-grappelli.readthedocs.org/ zh_CN / latest / index.html

Finally, you could use a admin skin app such as the wonderful Grappelli wich already provides a similar setting : http://django-grappelli.readthedocs.org/en/latest/index.html

希望这会有所帮助,

此致

这篇关于如何在管理员登录名和管理员页面中将“ Django管理”名称更改为自定义名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆