上一章Django 创建项目及应用-CSDN博客
创建的应用,需要在主项目的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应用,需要手工注册]