2012-12-16 08:29:49 +00:00
|
|
|
import os
|
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
2012-12-16 08:28:52 +00:00
|
|
|
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>' },
|
2012-12-16 08:29:49 +00:00
|
|
|
{ 'name': 'MyOpenID', 'url': 'https://www.myopenid.com' }]
|
|
|
|
|
|
|
|
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
|
2012-12-16 08:32:38 +00:00
|
|
|
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository')
|
|
|
|
|
|
|
|
# mail server settings
|
|
|
|
MAIL_SERVER = 'localhost'
|
|
|
|
MAIL_PORT = 25
|
|
|
|
MAIL_USERNAME = None
|
|
|
|
MAIL_PASSWORD = None
|
|
|
|
|
|
|
|
# administrator list
|
|
|
|
ADMINS = ['you@example.com']
|
2012-12-16 08:34:46 +00:00
|
|
|
|
|
|
|
# pagination
|
|
|
|
POSTS_PER_PAGE = 3
|
|
|
|
|