代码拉取完成,页面将自动刷新
# encoding: utf-8
"""
@author: lileilei
@file: config.py
@time: 2017/7/13 16:39
"""
'''配置文件,后台一些需要的配置需要在这里进行配置'''
import os
from apscheduler.jobstores.redis import RedisJobStore
from apscheduler.executors.pool import ThreadPoolExecutor, ProcessPoolExecutor
jenkins_url='http://localhost:8080'#jenkins的地址
jenkins_user='liwanlei'#jenkins的用户名
jenkins_password='123456'#jenkins的密码
xitong_request_toke='Fetext_token_system'#系统内部依赖接口请求的时候需要加个token来区分
Try_Num_Case=5#重试的次数
Interface_Time_Out=5000#超时时间
redis_password='123456'
max_connec_redis=10
test_fail_try_num=3
jobstores = {
'redis': RedisJobStore(),
}
executors = {
'default': ThreadPoolExecutor(10),
'processpool': ProcessPoolExecutor(3)
}
PageShow=25#这里配置的就是每个页显示多少条数据
Dingtalk_access_token=''#在这里配置您的接受通知的钉钉群自定义机器人webhook,
OneAdminCount=10 #设置项目管理员的数量
Config_daoru_xianzhi=50#配置可以导入限制
save_duration=24*60*60#配置redis存储的时长
redis_host='localhost'
redis_port=6379
redis_save_result_db=2
email_type="online.com"
class dev(object):#研发环境配置
SECRET_KEY = 'BaSeQuie'
basedir=os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(basedir, "data.sqlite")#mysql 配置mysql+pymysql://root:liwanlei@localhost:3306/test
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
SQLALCHEMY_TRACK_MODIFICATIONS=False
MAIL_SERVER='smtp.163.com'#你的邮箱的smtp服务
MAIL_PORT=25#端口号
MAIL_USE_TLS=True#是否检验
MAIL_USERNAME=""#你的邮箱
MAIL_PASSWORD=""#你邮箱的授权码
CSRF_ENABLED = True
UPLOAD_FOLDER='/upload'
DEBUG = True
@staticmethod
def init_app(app):
pass
class test(object):#测试环境的配置
SECRET_KEY = 'BaSeQuie'
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(basedir, "test.sqlite")
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
SQLALCHEMY_TRACK_MODIFICATIONS = False
MAIL_SERVER = 'smtp.163.com' # 你的邮箱的smtp服务
MAIL_PORT = 25 # 端口号
MAIL_USE_TLS = True # 是否检验
MAIL_USERNAME = "" # 你的邮箱
MAIL_PASSWORD = "" # 你邮箱的授权码
CSRF_ENABLED = True
UPLOAD_FOLDER = '/upload'
DEBUG = True
@staticmethod
def init_app(app):
pass
class produce(object):
#线上环境的配置
SECRET_KEY = 'ProduceFXTest'
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(basedir, "produce.sqlite")
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
SQLALCHEMY_TRACK_MODIFICATIONS = False
MAIL_SERVER = 'smtp.163.com' # 你的邮箱的smtp服务
MAIL_PORT = 25 # 端口号
MAIL_USE_TLS = True # 是否检验
MAIL_USERNAME = "" # 你的邮箱
MAIL_PASSWORD = "" # 你邮箱的授权码
CSRF_ENABLED = True
UPLOAD_FOLDER = '/upload'
DEBUG = False
@staticmethod
def init_app(app):
pass
def lod():
return dev
class Config(object):
JOBS = [ ]
SCHEDULER_API_ENABLED = True
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。