创建的应用,需要在主项目的myshop.settings.py 文件下注册
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'app1', # 创建的app1应用,需要手工注册
]