When you run the Django project, the error "No installed app with label 'admin'."
Environmental roughly as follows:
Python version 3.5
Django version 2.2
Mysql database
admin application is registered, but still an error.
Option 1: online information that is Django2.2 a bug (do not know is not), the method provides a fall back to the old version of Django.
(Version always updated, could not have been guarding the old version, not recommended )
pip install django==2.1.8
Option 2 For mysqlclient , pymysql or sqlparse updated : Recommended use mysqlclient
pip install mysqlclient
mysqlclient compatible django2.2, and pymysql not necessarily compatible (test the latest version is useless). If you can not install or uninstall pymysql legacy.
Note : Please configured correctly when localization settings, or will report an error
LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai'
If not resolved , see if it is apps.py an application in the name of an attribute is not set up correctly (pycharm project will create apps.py)
from django.apps import AppConfig
# 这是对应应用booktest
class BooktestConfig(AppConfig):
name = 'booktest'