from datetime import timedelta

DEBUG = True

SERVER_NAME = 'localhost:5000'
SECRET_KEY = 'insecurekeyfordev'

# Database
SQLALCHEMY_DATABASE_URI = 'sqlite+pysqlite:///world_manager.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False

# Flask-Mail.
MAIL_DEFAULT_SENDER = '<EMAIL>'
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USE_SSL = False
MAIL_USERNAME = '<EMAIL>'
MAIL_PASSWORD = '<PASSWORD>'

# Workers
CELERY_USER_NAME = 'world-manager-celery-dev'
CELERY_VHOST = 'world-manager-vhost'
CELERY_BROKER_URL = f'amqp://{CELERY_USER_NAME}:{SECRET_KEY}' \
                    f'@localhost:5672/{CELERY_VHOST}'
CELERY_RESULT_BACKEND = CELERY_BROKER_URL
CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'

# User.
SEED_ADMIN_EMAIL = '<EMAIL>'
SEED_ADMIN_PASSWORD = '<PASSWORD>'
REMEMBER_COOKIE_DURATION = timedelta(days=90)
from datetime import timedelta

DEBUG = True

SERVER_NAME = 'localhost:5000'
SECRET_KEY = 'insecurekeyfordev'

# Database
SQLALCHEMY_DATABASE_URI = 'sqlite+pysqlite:///world_manager.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False

# Flask-Mail.
MAIL_DEFAULT_SENDER = '<EMAIL>'
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USE_SSL = False
MAIL_USERNAME = '<EMAIL>'
MAIL_PASSWORD = '<PASSWORD>'

# Workers
CELERY_USER_NAME = 'world-manager-celery-dev'
CELERY_VHOST = 'world-manager-vhost'
CELERY_BROKER_URL = f'amqp://{CELERY_USER_NAME}:{SECRET_KEY}' \
                    f'@localhost:5672/{CELERY_VHOST}'
CELERY_RESULT_BACKEND = CELERY_BROKER_URL
CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'

# User.
SEED_ADMIN_EMAIL = '<EMAIL>'
SEED_ADMIN_PASSWORD = '<PASSWORD>'
REMEMBER_COOKIE_DURATION = timedelta(days=90)
# Database # Flask-Mail. # Workers # User.