"""
Django settings for cargopile_django project.
Generated by 'django-admin startproject' using Django 3.2.16.
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-7c_%tlbg!8age(amkrt9&xxodrdg-x$97w+oz8mvtw7+s$f2fr'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# ALLOWED_HOSTS = ['*'] # for all hosts
# only for '10.193.13.44' '127.0.0.1'
ALLOWED_HOSTS = ['10.193.13.44', '127.0.0.1']
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'recognition',
]
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 = 'cargopile_django.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['htmls'],
'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 = 'cargopile_django.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',
}
}
# 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'
LANGUAGE_CODE = 'zh-hans'
# TIME_ZONE = 'UTC'
TIME_ZONE = 'Asia/Shanghai'
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/'
STATIC_ROOT = BASE_DIR / 'recognition' / 'results'
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
没有合适的资源?快使用搜索试试~ 我知道了~
Django包装python算法的框架
共28个文件
py:14个
pyc:11个
html:1个
需积分: 3 0 下载量 94 浏览量
2023-02-21
22:27:33
上传
评论
收藏 43KB ZIP 举报
温馨提示
Django包装python算法的框架
资源推荐
资源详情
资源评论
收起资源包目录
cargopile_django.zip (28个子文件)
cargopile_django
db.sqlite3 0B
htmls
start.html 39B
recognition
__init__.py 0B
tests.py 60B
admin.py 63B
migrations
__init__.py 0B
__pycache__
__init__.cpython-37.pyc 183B
apps.py 154B
models.py 57B
urls.py 213B
__pycache__
views.cpython-37.pyc 2KB
admin.cpython-37.pyc 213B
models.cpython-37.pyc 210B
__init__.cpython-37.pyc 172B
apps.cpython-37.pyc 455B
urls.cpython-37.pyc 368B
results
test.jpg 26KB
views.py 1KB
manage.py 672B
cargopile_django
__init__.py 0B
wsgi.py 409B
urls.py 1KB
settings.py 3KB
__pycache__
settings.cpython-37.pyc 2KB
__init__.cpython-37.pyc 177B
wsgi.cpython-37.pyc 598B
urls.cpython-37.pyc 1KB
asgi.py 409B
共 28 条
- 1
资源评论
DongHappyyy
- 粉丝: 49
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功