"""
Django settings for day11 project.
Generated by 'django-admin startproject' using Django 3.2.13.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-r)ii6xb6iaoww&3g9woqp+^cn=+cpv)nm7te2!@^1oxsz&w*gh'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'app01.apps.App01Config'
]
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
ROOT_URLCONF = 'day11.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [ ],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
WSGI_APPLICATION = 'day11.wsgi.application'
# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME':'ab',
'USER': 'root',
'PASSWORD': '123456',
'HOST': '127.0.0.1',
'PORT': '3306',
}
}
# Password validation
# https://docs.djangoproject.com/en/3.2/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]
# Internationalization
# https://docs.djangoproject.com/en/3.2/topics/i18n/
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL = '/static/'
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
没有合适的资源?快使用搜索试试~ 我知道了~
python实现部门和用户管理网站
共62个文件
py:14个
pyc:11个
html:7个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 123 浏览量
2024-04-01
21:29:32
上传
评论
收藏 2MB ZIP 举报
温馨提示
python实现部门和用户管理网站,django,数据库为sql
资源推荐
资源详情
资源评论
收起资源包目录
第六个,实现部门和用户管理,但使用最原始的方法.zip (62个子文件)
第六个,实现部门和用户管理,但使用最原始的方法
day11
db.sqlite3 0B
day11
__init__.py 0B
wsgi.py 403B
urls.py 1KB
settings.py 3KB
__pycache__
settings.cpython-37.pyc 2KB
__init__.cpython-37.pyc 113B
wsgi.cpython-37.pyc 512B
urls.cpython-37.pyc 1KB
asgi.py 403B
app01
__init__.py 0B
tests.py 63B
admin.py 66B
migrations
__init__.py 0B
0001_initial.py 1KB
__pycache__
0001_initial.cpython-37.pyc 1KB
__init__.cpython-37.pyc 124B
apps.py 148B
models.py 912B
templates
user_add.html 3KB
user_list.html 2KB
layout.html 2KB
depart_edit.html 872B
depart_add.html 869B
depart_list.html 1KB
text.html 83B
__pycache__
views.cpython-37.pyc 2KB
admin.cpython-37.pyc 154B
models.cpython-37.pyc 1KB
__init__.cpython-37.pyc 113B
apps.cpython-37.pyc 384B
static
plugins
bootstrap-3.4.1
js
bootstrap.js 74KB
npm.js 484B
bootstrap.min.js 39KB
css
bootstrap-theme.min.css.map 74KB
bootstrap.min.css 119KB
bootstrap-theme.css.map 47KB
bootstrap-theme.css 25KB
bootstrap.css.map 382KB
bootstrap.css 143KB
bootstrap-theme.min.css 23KB
bootstrap.min.css.map 528KB
fonts
glyphicons-halflings-regular.svg 106KB
glyphicons-halflings-regular.ttf 44KB
glyphicons-halflings-regular.woff 23KB
glyphicons-halflings-regular.eot 20KB
glyphicons-halflings-regular.woff2 18KB
js
jquery-3.6.0.min.js 87KB
img
3.png 170KB
1.png 144KB
4.png 896KB
2.png 409KB
css
views.py 3KB
.idea
workspace.xml 6KB
misc.xml 188B
inspectionProfiles
profiles_settings.xml 174B
day11.iml 1KB
modules.xml 269B
.gitignore 184B
encodings.xml 135B
manage.py 683B
ab 0B
共 62 条
- 1
资源评论
依然风yrlf
- 粉丝: 785
- 资源: 1441
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功