/example_config.py
Python | 50 lines | 32 code | 11 blank | 7 comment | 0 complexity | c85d6f4b933c5026a4061aa2b69a45d4 MD5 | raw file
Possible License(s): GPL-2.0
- # see http://www.sqlalchemy.org/docs/core/engines.html#database-urls
- # These are need on the server (so you need to add them)
- import os,sys
- VIRTUAL_ENV = "~/virtualenv/bin/python"
- DB = 'sqlite:///:memory:'
- BASE_DIR = '~/base'
- COOKIE_SECRET = "nobody should be able to guess this"
- BCRYPT_SALT = '$2a$12$QZJ/BfXNLxj9qcMIzWWY1O' # import bcrypt;bcrypt.gensalt(12)
- ADMIN = "me@example.com"
- sys.path.append(os.path.expanduser(BASE_DIR))
- # This is an global key for example.com - for dev purposes
- PUBLIC_RE_KEY = '6LccF8YSAAAAAL1OzoFUMq4gOSjnndh4rl62uH5c'
- PRIVATE_RE_KEY = '6LccF8YSAAAAAKX28tyU9imyorOYTE4-CET8fygZ'
- STATIC = os.path.join(os.path.dirname(__file__),'static')
- # e-mail config
- email_domain = 'gmail.com' # don't use this in production.
- #email_server = 'smtp.gmail.com'
- email_server = 'dummy' # dummy will just print stuff to screen.
- email_user = 'me@example.com'
- email_password = 'example-password'
- email_secure = True
- #
- magic_token_url='https://example.com/m/'
- TEMPLATE = os.path.join(os.path.dirname(__file__),'template')
- # These are only needed by fab
- APP_REPO = 'git://github.com/peter-the-tea-drinker/tornado-base-example.git'
- APP_TAG = ''
- STAGE_APP_DIR = '~/stage.example.com'
- PROD_APP_DIR = '~/prod.example.com'
- TBONE_REPO = 'git://github.com/peter-the-tea-drinker/tornado-base.git'
- TBONE_TAG = ''
- LOCAL_TBONE_DIR = '~/TBone'
- LOCAL_APP_DIR = '~/tornado-base-example'
- sys.path.append(os.path.expanduser(LOCAL_APP_DIR))
- sys.path.append(os.path.expanduser(LOCAL_BASE_DIR))