S
S
Sergey Nizhny Novgorod2016-05-30 15:23:13
Django
Sergey Nizhny Novgorod, 2016-05-30 15:23:13

How to change app name and model to Russian in Django admin?

Hello.
download?id=BFeFPr75B5DbHnsjGRFPATDib57H
How can I change these phrases to Russian?
Faceset is the name of the application.
timetables - model

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zigen, 2016-05-30
@Terras

1. In apps.py:

from django.apps import AppConfig

class FacesetConfig(AppConfig):
    name = 'faceset'
    verbose_name = "Что-то твое на русском на родном"

2. models.py
class Timetables(models.Model):
    name = models.CharField(u'time', max_length=30)

    class Meta:
        verbose_name = 'Что-то твое на русском на родном'
        verbose_name_plural = 'Что-то твое на русском на родном'

    def __str__(self):
        return self.name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question