Advertisement
Guest User

Untitled

a guest
Jun 21st, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. import os
  2. import datetime
  3.  
  4. ################################################################################
  5. # ____
  6. # / __ )____ _________
  7. # / __ / __ `/ ___/ _ \
  8. # / /_/ / /_/ (__ ) __/
  9. # /_____/\__,_/____/\___/
  10. #
  11. ################################################################################
  12.  
  13. class base(object):
  14.  
  15. # Define the application directory
  16. BASE_DIR = os.path.abspath(os.path.dirname(__file__))
  17.  
  18. # Flask-Mail
  19. MAIL_SERVER = 'smtp.gmail.com'
  20. MAIL_PORT = 465
  21. MAIL_USE_TLS = False
  22. MAIL_USE_SSL = True
  23. MAIL_DEBUG = False
  24. MAIL_USERNAME = 'admin@therafiapp.com'
  25. MAIL_PASSWORD = 'TheRafiApp2015!'
  26. MAIL_DEFAULT_SENDER = "Mimo <admin@therafiapp.com>"
  27.  
  28. # Twilio
  29. TWILIO_ACCOUNT_SID = "AC5d7f8b3375bb9e3a3c94fa52fb0fb84d"
  30. TWILIO_AUTH_TOKEN = "c1dc9fdef1e234ed3a9fe1c64ce102eb"
  31.  
  32. # Dwolla
  33. DWOLLA_ROOT = 'https://api-uat.dwolla.com'
  34.  
  35. DWOLLA_TOKEN_URL = 'https://uat.dwolla.com/oauth/v2/token'
  36.  
  37. ################################################################################
  38. # ____ __ __
  39. # / __ \___ _ _____ / /___ ____ ____ ___ ___ ____ / /_
  40. # / / / / _ \ | / / _ \/ / __ \/ __ \/ __ `__ \/ _ \/ __ \/ __/
  41. # / /_/ / __/ |/ / __/ / /_/ / /_/ / / / / / / __/ / / / /_
  42. # /_____/\___/|___/\___/_/\____/ .___/_/ /_/ /_/\___/_/ /_/\__/
  43. # /_/
  44. ################################################################################
  45.  
  46. class development(base):
  47.  
  48. DEBUG = True
  49.  
  50. SEND_EMAIL = True
  51. SEND_TEXT = True
  52.  
  53. # Host name for CORS headers
  54. HOST_NAME = 'http://plutus.dev'
  55.  
  56. REFRESH_TOKEN_LIFESPAN = 7776000 # 3 months
  57. AUTHORIZATION_TOKEN_LIFESPAN = 900 # 15 minutes
  58. PASSWORD_RESET_LIFESPAN = 3000 # 5 minutes
  59. INVITE_LIFESPAN = 15552000 # 6 months
  60.  
  61. # Celery settings
  62. CELERY_BROKER_URL = 'amqp://localhost'
  63. CELERY_IGNORE_RESULT = True
  64. CELERYD_CONCURRENCY = 1
  65.  
  66. # custom celery beat data store
  67. CELERYBEAT_SCHEDULE = {
  68. "text_nick": {
  69. "task": "api.tasks.text_nick",
  70. "schedule": datetime.timedelta(seconds=10)
  71. },
  72. "pre_event_notification_rent_due": {
  73. "task": "api.tasks.pre_event_notification_rent_due",
  74. "schedule": datetime.timedelta(days=1)
  75. }
  76. }
  77.  
  78. ################################################################################
  79. # _____ __ _
  80. # / ___// /_____ _____ _(_)___ ____ _
  81. # \__ \/ __/ __ `/ __ `/ / __ \/ __ `/
  82. # ___/ / /_/ /_/ / /_/ / / / / / /_/ /
  83. # /____/\__/\__,_/\__, /_/_/ /_/\__, /
  84. # /____/ /____/
  85. ################################################################################
  86.  
  87. class staging(base):
  88. pass
  89.  
  90. ################################################################################
  91. # ____ __ __ _
  92. # / __ \_________ ____/ /_ _______/ /_(_)___ ____
  93. # / /_/ / ___/ __ \/ __ / / / / ___/ __/ / __ \/ __ \
  94. # / ____/ / / /_/ / /_/ / /_/ / /__/ /_/ / /_/ / / / /
  95. # /_/ /_/ \____/\__,_/\__,_/\___/\__/_/\____/_/ /_/
  96. #
  97. ################################################################################
  98.  
  99. class production(base):
  100. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement