import os
basedir = os.path.abspath(os.path.dirname(__file__))

class Config(object):
    DEBUG = False
    TESTING = False
    CSRF_ENABLED = True
    SECRET_KEY = 'this-really-needs-to-be-changed'
    SQLALCHEMY_DATABASE_URI = "postgresql+psycopg2://postgres:postgres@localhost/postgres"
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    MAIL_SERVER = "127.0.0.1"
    MAIL_PORT = 8025
    MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS') is not None
    MAIL_USERNAME = os.environ.get('MAIL_USERNAME')
    MAIL_PASSWORD = os.environ.get('MAIL_PASSWORD')
    ADMINS = ['aaaa@gmail.com'] #UBERI ETO EBLAN
    POSTS_PER_PAGE = 3
    LANGUAGES = ['en', 'es']
    MS_TRANSLATOR_KEY = 'trnsl.1.1.20200122T180450Z.00e4d4a94fca15fb.3f0d1d69f055b5e7d0cfa23baf6d07391bf07a94'
    ELASTICSEARCH_URL = os.environ.get('ELASTICSEARCH_URL')
    REDIS_URL = "redis://:@127.0.0.1:6379"
        #os.environ.get('MS_TRANSLATOR_KEY')
"""
set MAIL_SERVER = smtp.gmail.com
set MAIL_PORT = 465
set MAIL_USE_SSL = True
set MAIL_USERNAME = 
set MAIL_PASSWORD = 
"""
"""
python -m smtpd -n -c DebuggingServer localhost:8025
$ set FLASK_APP=runner.py
$ set FLASK_DEBUG=1
$ set MAIL_SERVER=localhost
$ set MAIL_PORT=8025
$ flask run
"""