"""
Django settings for MyFistDjangoTest project.
Generated by 'django-admin startproject' using Django 3.2.6.
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-k1c#0)&t9@3!)#zty4vd#$m-7k_bnwl!1@b+m%83_723p3fo*0'
# 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',
]
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 = 'MyFistDjangoTest.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [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 = 'MyFistDjangoTest.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': 'autoCreatByTZ',
'USER': 'root',
'PASSWORD': '54xxy111',
'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'
LANGUAGE_CODE = 'zh-Hans'
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/'
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
# Application definition
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'apitest',
'product',
'bootstrap4',
'bug',
'set',
'apptest',
'webtest'
]
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
基于Django开发的自动化测试平台源码,集成了Python和Selenium工具,提供了全面的自动化测试解决方案。该资源包含完整的开发文档、源码以及数据资料,适用于计算机相关专业的在校学生、老师或企业员工作为学习和实践使用。通过阅读和调试代码,用户可以深入理解接口自动化测试平台的工作原理和实现方法。本资源为学习资源,旨在提高用户的测试效率和质量。
资源推荐
资源详情
资源评论
收起资源包目录
基于django自动化测试平台开发源码.zip (79个子文件)
code1128
db.sqlite3 128KB
MyFistDjangoTest
__init__.py 43B
wsgi.py 409B
urls.py 2KB
settings.py 4KB
asgi.py 409B
webtest
__init__.py 0B
tests.py 60B
admin.py 598B
migrations
__init__.py 0B
0001_initial.py 2KB
webviews.py 821B
apps.py 146B
models.py 2KB
templates
webcase_manage.html 2KB
webcasestep_manage.html 2KB
bug
__init__.py 0B
tests.py 60B
admin.py 262B
migrations
__init__.py 0B
0001_initial.py 2KB
apps.py 138B
models.py 1KB
templates
bug_manage.html 2KB
bugviews.py 328B
apptest
__init__.py 0B
tests.py 60B
admin.py 571B
appviews.py 652B
migrations
__init__.py 0B
0001_initial.py 2KB
apps.py 146B
models.py 2KB
templates
appcasestep_manage.html 2KB
appcase_manage.html 2KB
.idea
MyFistDjangoTest.iml 998B
vcs.xml 180B
misc.xml 204B
inspectionProfiles
profiles_settings.xml 174B
modules.xml 284B
.gitignore 176B
encodings.xml 159B
manage.py 672B
apitest
__init__.py 0B
tests.py 60B
admin.py 723B
migrations
__init__.py 0B
0001_initial.py 3KB
0002_apis.py 2KB
apps.py 146B
models.py 3KB
templates
apistep_manage.html 2KB
1.jpg 232KB
home.html 427B
1.png 979KB
login1.html 157B
login.html 808B
apitest_manage.html 2KB
apis_manage.html 2KB
views.py 2KB
product
__init__.py 0B
tests.py 60B
admin.py 1KB
migrations
__init__.py 0B
0001_initial.py 957B
apps.py 146B
models.py 487B
templates
product_manage.html 1KB
proviews.py 300B
set
__init__.py 0B
tests.py 60B
admin.py 237B
migrations
__init__.py 0B
0001_initial.py 750B
apps.py 138B
models.py 334B
templates
set_manage.html 1KB
set_user.html 3KB
setviews.py 489B
共 79 条
- 1
资源评论
葡萄籽儿
- 粉丝: 581
- 资源: 2417
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功