from path import path

instance_path = path(__file__).parent

secret_key_path = instance_path/'secret_key.txt'
if secret_key_path.isfile():
    SECRET_KEY = secret_key_path.text().strip()

DATABASE_URI = "postgresql://edw:edw@localhost/seris"
TESTING_DATABASE_URI = "postgresql://edw:edw@localhost/seris_test"
FRAME_URL = (
    'http://forum.eionet.europa.eu/nrc-state-environment/seris_frame/frame')
HTTP_PROXIED = True
ZOPE_TEMPLATE_CACHE = True
FRAME_COOKIES = ['__ac', '_ZopeId']
HTTP_PROXIED = True
MAIL_FAIL_SILENTLY = False
DEFAULT_MAIL_SENDER = 'no-reply@eionet.europa.eu'
ADMINISTRATOR_EMAILS = ['milan.chrenko@eea.europa.eu']
