# SECURITY WARNING: don't run with debug turned on in production!
# 开发工程就是调试过程
DEBUG = True
# 被允许的域名 ip地址 也可以写通配符*表示适用多个域名
ALLOWED_HOSTS = []
# 定义应用
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# 添加app新建工程
'APP.apps.AppConfig',
# 跟路由 相当于创建的django1项目下面的urls文件
ROOT_URLCONF = 'django1.urls'
# wsgi目录
WSGI_APPLICATION = 'django1.wsgi.application'
# Database
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
# 数据库配置
DATABASES = {
'default': {
"ENGINE": "django.db.backends.mysql",
"NAME": "itxiefan",
"USER": "root",
"PASSWORD": "123456",
"HOST": "127.0.0.1",
"PORT": "3306",
}
}
|