1 Star 0 Fork 0

anningwang/microblog-0.16

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.py 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
anningwang 提交于 2017-07-28 15:59 . 增加d算法
# -*- coding: utf8 -*-
import os
basedir = os.path.abspath(os.path.dirname(__file__))
CSRF_ENABLED = True
SECRET_KEY = 'you-will-never-guess'
OPENID_PROVIDERS = [
{ 'name': 'Google', 'url': 'https://www.google.com/accounts/o8/id' },
{ 'name': 'Yahoo', 'url': 'https://me.yahoo.com' },
{ 'name': 'AOL', 'url': 'http://openid.aol.com/<username>' },
{ 'name': 'Flickr', 'url': 'http://www.flickr.com/<username>' },
{ 'name': 'MyOpenID', 'url': 'https://www.myopenid.com' }]
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
SQLALCHEMY_RECORD_QUERIES = True
WHOOSH_BASE = os.path.join(basedir, 'search.db')
FILENAME_VERTEX = os.path.join(basedir, "app/static/ajax/vertex.json")
# slow database query threshold (in seconds)
DATABASE_QUERY_TIMEOUT = 0.5
# email server
MAIL_SERVER = 'your.mailserver.com'
MAIL_PORT = 25
MAIL_USE_TLS = False
MAIL_USE_SSL = False
MAIL_USERNAME = 'you'
MAIL_PASSWORD = 'your-password'
# available languages
LANGUAGES = {
'en': 'English',
'es': 'Español'
}
# microsoft translation service
MS_TRANSLATOR_CLIENT_ID = '' # enter your MS translator app id here
MS_TRANSLATOR_CLIENT_SECRET = '' # enter your MS translator app secret here
# administrator list
ADMINS = ['you@example.com']
# pagination
POSTS_PER_PAGE = 3
MAX_SEARCH_RESULTS = 50
SQLALCHEMY_TRACK_MODIFICATIONS = True
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/anningwang/microblog-0.16.git
git@gitee.com:anningwang/microblog-0.16.git
anningwang
microblog-0.16
microblog-0.16
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385