PageRenderTime 27ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/example_config.py

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