In the version after Django 1.9, the python manage.py syncdb command is modified to Python manage.py migrate, which runs normally
Select SQLite visual SQLite studio-3.1.1 to operate the database
Synchronization command:
commands are
python manage.py makemigrations
python manage.py migrate
Django 1.9 background becomes Chinese
In version 1.9, the simplified Chinese code is zh_ Hans, the traditional Chinese code is zh_ Hant。
Modify as follows:
simplified Chinese:
Modify language_ The code parameter is set to “zh Hans”
LANGUAGE_CODE = ‘zh-Hans’
Or
traditional Chinese:
Modify language_ The code parameter is set to “zh hant”
LANGUAGE_CODE = ‘zh_Hant’
Similar Posts:
- [Solved] Django Error: – no such table: main.auth_user__old
- [Solved] DjangoORM Run python manage.py makemigrations Error: no changes detected
- [Solved] django.db.utils.ProgrammingError: (1146, u”Table” xxx doesn’t exist”)
- [Solved] You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for…
- Oracle Error: ORA-01843: not a valid month [Solved]
- Django exception-ImportError: No module named django.core.management
- [Solved] Djiango Create Migrations Error: query = query.decode(errors=’replace’) AttributeError: ‘str’ object has no attribute ‘decode’
- [Solved] Ubuntu 18.04 installation vscode configuration and error reporting
- [Solved] Django cannot create an app after creating a project
- [Solved] Django database Modify Warning: Did you rename house.houseid to house.id (a BigAutoField)? [y/N] n