python - Django后台管理输入密码后的首页如何更改
大家讲道理
大家讲道理 2017-04-18 09:18:09
0
1
355

django 有自带的admin.我想修改我输入密码后进入的后台管理系统的首页.这么修改.
想把默认显示数据库表名修改为中文

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
阿神

To change the displayed table name to Chinese, you can define it as follows in the inner class Meta of the model class:

class MyModel(models.Model):
    class Meta:
        verbose_name = u'中文名'
        verbose_name_plural = u'中文名'

You can refer to the Meta option in Django Model

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template