Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import datetime
- ################################################################################
- # ____
- # / __ )____ _________
- # / __ / __ `/ ___/ _ \
- # / /_/ / /_/ (__ ) __/
- # /_____/\__,_/____/\___/
- #
- ################################################################################
- class base(object):
- # Define the application directory
- BASE_DIR = os.path.abspath(os.path.dirname(__file__))
- # Flask-Mail
- MAIL_SERVER = 'smtp.gmail.com'
- MAIL_PORT = 465
- MAIL_USE_TLS = False
- MAIL_USE_SSL = True
- MAIL_DEBUG = False
- MAIL_USERNAME = 'admin@therafiapp.com'
- MAIL_PASSWORD = 'TheRafiApp2015!'
- MAIL_DEFAULT_SENDER = "Mimo <admin@therafiapp.com>"
- # Twilio
- TWILIO_ACCOUNT_SID = "AC5d7f8b3375bb9e3a3c94fa52fb0fb84d"
- TWILIO_AUTH_TOKEN = "c1dc9fdef1e234ed3a9fe1c64ce102eb"
- # Dwolla
- DWOLLA_ROOT = 'https://api-uat.dwolla.com'
- DWOLLA_TOKEN_URL = 'https://uat.dwolla.com/oauth/v2/token'
- ################################################################################
- # ____ __ __
- # / __ \___ _ _____ / /___ ____ ____ ___ ___ ____ / /_
- # / / / / _ \ | / / _ \/ / __ \/ __ \/ __ `__ \/ _ \/ __ \/ __/
- # / /_/ / __/ |/ / __/ / /_/ / /_/ / / / / / / __/ / / / /_
- # /_____/\___/|___/\___/_/\____/ .___/_/ /_/ /_/\___/_/ /_/\__/
- # /_/
- ################################################################################
- class development(base):
- DEBUG = True
- SEND_EMAIL = True
- SEND_TEXT = True
- # Host name for CORS headers
- HOST_NAME = 'http://plutus.dev'
- REFRESH_TOKEN_LIFESPAN = 7776000 # 3 months
- AUTHORIZATION_TOKEN_LIFESPAN = 900 # 15 minutes
- PASSWORD_RESET_LIFESPAN = 3000 # 5 minutes
- INVITE_LIFESPAN = 15552000 # 6 months
- # Celery settings
- CELERY_BROKER_URL = 'amqp://localhost'
- CELERY_IGNORE_RESULT = True
- CELERYD_CONCURRENCY = 1
- # custom celery beat data store
- CELERYBEAT_SCHEDULE = {
- "text_nick": {
- "task": "api.tasks.text_nick",
- "schedule": datetime.timedelta(seconds=10)
- },
- "pre_event_notification_rent_due": {
- "task": "api.tasks.pre_event_notification_rent_due",
- "schedule": datetime.timedelta(days=1)
- }
- }
- ################################################################################
- # _____ __ _
- # / ___// /_____ _____ _(_)___ ____ _
- # \__ \/ __/ __ `/ __ `/ / __ \/ __ `/
- # ___/ / /_/ /_/ / /_/ / / / / / /_/ /
- # /____/\__/\__,_/\__, /_/_/ /_/\__, /
- # /____/ /____/
- ################################################################################
- class staging(base):
- pass
- ################################################################################
- # ____ __ __ _
- # / __ \_________ ____/ /_ _______/ /_(_)___ ____
- # / /_/ / ___/ __ \/ __ / / / / ___/ __/ / __ \/ __ \
- # / ____/ / / /_/ / /_/ / /_/ / /__/ /_/ / /_/ / / / /
- # /_/ /_/ \____/\__,_/\__,_/\___/\__/_/\____/_/ /_/
- #
- ################################################################################
- class production(base):
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement