1 Star 0 Fork 0

kido Zhang/tjango

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
setting.py 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
kido Zhang 提交于 2017-01-02 17:54 . Add files via upload
# -*- coding: UTF-8 -*-
__author__ = 'kidozh'
import os
# keep in secret all the time
SECRET_KEY = '__please_input_your_secret_key___'
# host for database
DB_HOST = 'localhost'
# username for database
DB_USER = 'root'
# password for database
DB_PASSWD = ''
# database's type
DB_TYPE = 'mysql'
# driver for SQLalchemy
DB_DRIVER = ''
# which database we should choose
DB_NAME = '__please_specify_your_database_name___'
# for installed Apps we will search these string then
INSTALLED_APPS = (
'acmCralwer',
'contrib.admin',
'conf',
)
# for root urls
ROOT_URLCONF = 'urls'
# for log file
LOGFILE = 'log/site.log'
# LOGFILE = False
# for mail
MAIL_SERVER = "__your_server_name__"
MAIL_PORT = 465
MAIL_USERNAME = "xxx@xxx.xxx"
MAIL_PASSWORD = ""
# administrator list
ADMINS = ["xxx@xxx.xxx", ]
# set debug value according to system type
if os.environ.get('OS') == 'Windows_NT':
DEBUG = True
else:
DEBUG = False
DB_PASSWD = '__password__on__server'
DB_NAME = 'npuacm'
# for timezone
USE_TZ = True
TIME_ZONE = 'Asia/Shanghai'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/kidozh/tjango.git
git@gitee.com:kidozh/tjango.git
kidozh
tjango
tjango
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385