"""
Django settings for store_management project.
Generated by 'django-admin startproject' using Django 3.2.4.
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/
"""
import os
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-d44=xloa_ngo&moz%cujtvuqpr7ub)hfbqss6$xnubj031q3!9'
# 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',
'store_management'
]
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 = 'store_management.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')],
'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 = 'store_management.wsgi.application'
# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': BASE_DIR / 'db.sqlite3',
# }
# }
DATABASES = {
'default':
{
'ENGINE': 'django.db.backends.mysql', # 数据库引擎
'NAME': 'store_management', # 数据库名称
'HOST': '127.0.0.1', # 数据库地址,本机 ip 地址 127.0.0.1
'PORT': 3306, # 端口
'USER': 'root', # 数据库用户名
'PASSWORD': 'root', # 数据库密码
}
}
# 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
USE_TZ = False
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL = '/static/'
# 重定向静态文件目录
STATICFILES_DIRS = [
os.path.join(BASE_DIR, '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'
# 异常捕获
REST_FRAMEWORK = {
'EXCEPTION_HANDLER': 'store_management.exception.custom_exception_handler'
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
1、项目介绍 基于django框架的企业设备采购管理系统拥有三种角色:管理员、货主、采购 主要实现功能有:货物大厅、我的订单、个人中心、货物管理、入库记录、出库记录、用户管理。 2、项目技术 后端框架:django 前端框架:elementUI、jsp、css、JavaScript、JQuery 3、开发环境 IDE类型:IPyCharm 数据库版本:MySql 8.0 硬件环境:Windows 或者 Mac OS
资源推荐
资源详情
资源评论
收起资源包目录
超级简单python基于django框架仓库管理系统设计与实现mysql数据库(项目源码+数据库) (128个子文件)
element.css 227KB
user.css 2KB
admin.css 2KB
login.css 714B
index.css 406B
.gitignore 184B
user_owner_cargo.html 9KB
login.html 8KB
admin_store.html 8KB
user_buyer_cargo.html 6KB
admin_out_store.html 3KB
user_owner_out_store.html 3KB
user_buyer_order.html 3KB
user_owner_in_store.html 3KB
user_buyer_user.html 3KB
user_owner_user.html 3KB
admin_in_store.html 3KB
admin_user.html 2KB
user_owner.html 2KB
admin.html 2KB
user_buyer.html 2KB
store_management.iml 1KB
head.jpeg 231KB
element.js 554KB
vue.js 334KB
axios.js 14KB
test.js 271B
helper.js 117B
user.less 2KB
admin.less 2KB
login.less 733B
index.less 485B
login-bg.png 29KB
logo.png 3KB
settings.py 4KB
view_cargo.py 3KB
models.py 3KB
urls.py 3KB
view_user.py 2KB
view_order.py 2KB
view_out_store.py 1KB
views.py 1KB
serializers.py 1KB
view_in_store.py 1KB
view_store.py 930B
manage.py 694B
exception.py 579B
wsgi.py 425B
asgi.py 425B
Action.py 334B
__init__.py 91B
models.cpython-37.pyc 3KB
models.cpython-36.pyc 3KB
models.cpython-38.pyc 3KB
view_cargo.cpython-37.pyc 3KB
view_cargo.cpython-36.pyc 3KB
settings.cpython-38.pyc 3KB
settings.cpython-37.pyc 3KB
settings.cpython-36.pyc 3KB
view_cargo.cpython-38.pyc 3KB
serializers.cpython-37.pyc 2KB
serializers.cpython-36.pyc 2KB
serializers.cpython-38.pyc 2KB
urls.cpython-37.pyc 2KB
urls.cpython-36.pyc 2KB
urls.cpython-38.pyc 2KB
view_user_owner.cpython-37.pyc 2KB
view_user_owner.cpython-36.pyc 2KB
view_user.cpython-38.pyc 2KB
view_user.cpython-37.pyc 2KB
view_user.cpython-36.pyc 2KB
view_flight.cpython-37.pyc 2KB
views.cpython-37.pyc 2KB
views.cpython-36.pyc 2KB
views.cpython-38.pyc 2KB
view_order.cpython-37.pyc 2KB
view_order.cpython-36.pyc 2KB
view_order.cpython-38.pyc 2KB
view_flight.cpython-36.pyc 1KB
view_equopmen_suppliert.cpython-37.pyc 1KB
view_patient.cpython-37.pyc 1KB
view_doctor.cpython-37.pyc 1KB
view_doctor.cpython-36.pyc 1KB
view_out_store.cpython-37.pyc 1KB
view_out_store.cpython-36.pyc 1KB
view_out_store.cpython-38.pyc 1KB
view_patient.cpython-36.pyc 1KB
view_in_store.cpython-37.pyc 1KB
view_in_store.cpython-36.pyc 1KB
view_in_store.cpython-38.pyc 1KB
view_store.cpython-37.pyc 1KB
view_store.cpython-38.pyc 1KB
view_store.cpython-36.pyc 1KB
view_medicine.cpython-37.pyc 1018B
view_medicine.cpython-36.pyc 1014B
view_medice.cpython-36.pyc 998B
view_equopment.cpython-37.pyc 969B
view_equipment.cpython-37.pyc 969B
view_supplier.cpython-37.pyc 925B
view_ticket.cpython-37.pyc 864B
共 128 条
- 1
- 2
程序员小蛋
- 粉丝: 2746
- 资源: 489
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于Java和MySQL的学生信息管理系统.zip
- (源码)基于ASP.NET Core的零售供应链管理系统.zip
- (源码)基于PythonSpleeter的戏曲音频处理系统.zip
- (源码)基于Spring Boot的监控与日志管理系统.zip
- (源码)基于C++的Unix V6++二级文件系统.zip
- (源码)基于Spring Boot和JPA的皮皮虾图片收集系统.zip
- (源码)基于Arduino和Python的实时歌曲信息液晶显示屏展示系统.zip
- (源码)基于C++和C混合模式的操作系统开发项目.zip
- (源码)基于Arduino的全球天气监控系统.zip
- OpenCVForUnity2.6.0.unitypackage
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
前往页