Speaking admin Site Admin
Modify settings file (the content changes on the table for the next table):
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC' |
LANGUAGE_CODE = 'zh-Hans'
TIME_ZONE = 'Asia/Shanghai' |
Chinese model field name
eg:
class Product(models.Model): id = models.IntegerField('序号',primary_key=True) name = models.CharField(max_length=50, null=False,verbose_name='名称')
def __str__(self): return self.name
class Meta: # Plural form, if only the verbose_name, will appear as "Product Information s" in Admin = verbose_name_plural "Product Information" = verbose_name "Product Information" |
Speaking app
app.py class in under his party:
verbose_name = 'your app name'