"""
Django settings for medicalStructureDataAdmin project.
Generated by 'django-admin startproject' using Django 4.2.1.
For more information on this file, see
https://docs.djangoproject.com/en/4.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.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/4.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "django-insecure-gr2t+bex&tf*9re4bs4fft@8-3ec=a!zs--!eyv^ub#c+!e&@x"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['*']
# Application definition
INSTALLED_APPS = [
'simpleui',
'medicalStructureDataAdmin',
# 'medicalStructureDataAdmin.apps.MedicalStructureDataAdminConfig',
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
]
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 = "medicalStructureDataAdmin.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 = "medicalStructureDataAdmin.wsgi.application"
# Database
# https://docs.djangoproject.com/en/4.2/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": BASE_DIR / "db.sqlite3",
}
}
# Password validation
# https://docs.djangoproject.com/en/4.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",
},
]
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format':
'{levelname} {asctime} {module} {process:d} {thread:d} {message}',
'style': '{',
},
},
'handlers': {
'file': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename': os.path.join(BASE_DIR, 'django.log'),
'encoding': 'utf-8', # 指定文件编码为utf-8
'formatter': 'verbose',
},
'console': {
'class': 'logging.StreamHandler',
'formatter': 'verbose',
},
},
'loggers': {
'django': {
'handlers': ['file', 'console'],
'level': 'INFO', # 可以根据需要设置为INFO, WARNING, ERROR等
'propagate': True,
},
},
}
# AUTH_USER_MODEL = 'medicalStructureDataAdmin.User'
# Internationalization
# https://docs.djangoproject.com/en/4.2/topics/i18n/
LANGUAGE_CODE = 'zh-hans'
TIME_ZONE = 'Asia/Shanghai'
USE_I18N = True
USE_L10N = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/4.2/howto/static-files/
STATIC_URL = "static/"
MEDIA_URL = 'media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# Default primary key field type
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【资源说明】 毕业设计 基于Python+Django+Sqlite3+LLM开发的医疗文本数据结构化在线平台源码+详细说明+全部数据资料 高分项目毕业设计 基于Python+Django+Sqlite3+LLM开发的医疗文本数据结构化在线平台源码+详细说明+全部数据资料 高分项目 【备注】 1、该项目是高分毕业设计项目源码,已获导师指导认可通过,答辩评审分达到95分 2、该资源内项目代码都经过mac/window10/11/linux测试运行成功,功能ok的情况下才上传的,请放心下载使用! 3、本项目适合计算机相关专业(如软件工程、计科、人工智能、通信工程、自动化、电子信息等)的在校学生、老师或者企业员工下载使用,也可作为毕业设计、课程设计、作业、项目初期立项演示等,当然也适合小白学习进阶。 4、如果基础还行,可以在此代码基础上进行修改,以实现其他功能,也可直接用于毕设、课设、作业等。 欢迎下载,沟通交流,互相学习,共同进步!
资源推荐
资源详情
资源评论
收起资源包目录
毕业设计 基于Python+Django+Sqlite3+LLM开发的医疗文本数据结构化在线平台源码+详细说明+全部数据资料 高分项目.zip (38个子文件)
LZU-medicalStructureDataAdmin-main
db.sqlite3 188KB
django.log 81KB
manage.py 695B
static
ico
favicon.ico 15KB
medicalStructureDataAdmin
__init__.py 0B
admin.py 938B
migrations
__init__.py 0B
0002_alter_record_create_time_alter_record_id_and_more.py 3KB
0003_alter_schemaconfig_create_time.py 516B
0001_initial.py 3KB
0004_llm.py 1KB
0005_record_model_id.py 661B
__pycache__
0005_record_model_id.cpython-38.pyc 888B
0003_alter_schemaconfig_create_time.cpython-38.pyc 785B
0002_alter_record_create_time_alter_record_id_and_more.cpython-38.pyc 2KB
0006_record_model_id_alter_record_user_id.cpython-38.pyc 1KB
0001_initial.cpython-38.pyc 1KB
0004_llm.cpython-38.pyc 1008B
0005_alter_record_user_id.cpython-38.pyc 834B
__init__.cpython-38.pyc 239B
apps.py 255B
models.py 3KB
wsgi.py 427B
urls.py 1KB
settings.py 4KB
__pycache__
wsgi.cpython-38.pyc 667B
models.cpython-38.pyc 4KB
urls.cpython-38.pyc 2KB
settings.cpython-38.pyc 3KB
admin.cpython-38.pyc 1KB
__init__.cpython-310.pyc 230B
apps.cpython-38.pyc 583B
wsgi.cpython-310.pyc 669B
settings.cpython-310.pyc 2KB
urls.cpython-310.pyc 1KB
__init__.cpython-38.pyc 228B
asgi.py 427B
171265889347208773632.zip 416B
共 38 条
- 1
资源评论
不走小道
- 粉丝: 3225
- 资源: 5113
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于python区块链的图片版权保护系统
- 一些常用的 Redis 基本命令以及它们的使用用例
- 一个简单的 Python 代码示例,演示了如何实现树状数组(也称为二进制索引树)
- 最新USB转vga hdmi驱动Fresco logic FL2000-2.1.36287驱动
- 基于原生语言开发的智慧养老微信小程序(只含页面)
- 课程设计基于sort+knn实现高空抛物演示python源码+演示视频.7z
- 基于Java的万年历源代码
- halcon检测表面的缺陷例子
- 基于LabView+MATLAB的说话人识别系统
- 基于Flask Web的中文自动语音识别演示系统,包含语音识别、语音合成、声纹识别之说话人识别
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功