import os
from datetime import date


class DefaultConfig:
    base_path = os.path.abspath(os.path.dirname(__file__))

    DEBUG = True

    DATABASE_CONNECT_OPTIONS = {}

    SECRET_KEY = ''  # Change this for real use

    CSRF_ENABLED = True
    CSRF_SESSION_KEY = ''  # Change this for real use

    DEBUG_TB_INTERCEPT_REDIRECTS = False

    RECAPTCHA_USE_SSL = False
    RECAPTCHA_PUBLIC_KEY = ''   # Change this for real use
    RECAPTCHA_PRIVATE_KEY = ''  # Change this for real use
    RECAPTCHA_OPTIONS = {'theme': 'white'}

    EXAMINATION_UPLOAD_FOLDER = 'app/static/uploads/examinations'
    SUMMARY_UPLOAD_FOLDER = 'app/static/uploads/summaries'
    UPLOAD_DIR = 'app/static/files/'
    FILE_DIR = '/static/files/'

    # One date format string to rule them all (use this in strftime)
    DATE_FORMAT = "%Y-%m-%d"
    DT_FORMAT = "%Y-%m-%d %H:%M"
    MIN_PASSWORD_LENGTH = 6

    LANGUAGES = {
        'en': 'English',
        'nl': 'Nederlands'
    }

    # Teacher's elections configuration
    ELECTIONS_NOMINATE_START = date(2014, 12, 12)
    ELECTIONS_VOTE_START = date(2015, 1, 5)
    ELECTIONS_VOTE_END = date(2015, 1, 16)

    POS_API_KEY = ''   # Change this for real use

    GOOGLE_API_KEY = ''   # Path to Google p12 key file, change for real use
    GOOGLE_SERVICE_EMAIL = 'test@developer.gserviceaccount.com'  # change this
    GOOGLE_CALENDAR_ID = ''  #

    # ict@svia.nl
    JIRA_ACCOUNT = {
        'username': 'ictvia',
        'password': ''  # super secret password
    }

    # Mollie config
    MOLLIE_URL = 'https://api.mollie.nl/v1/payments/'
    MOLLIE_TEST_KEY = ''
    MOLLIE_KEY = ''
    MOLLIE_REDIRECT_URL = 'https://svia.nl/mollie/check/'
    MOLLIE_TEST_MODE = True

    COPERNICA_ENABLED = False
    COPERNICA_API_KEY = ""
    COPERNICA_DATABASE_ID = ""
    COPERNICA_ACTIEPUNTEN = ""
    COPERNICA_ACTIVITEITEN = ""

    DOMJUDGE_ADMIN_USERNAME = "viaduct"
    DOMJUDGE_ADMIN_PASSWORD = ""
    DOMJUDGE_URL = "http://localhost:80/"

@@ -1973,8 +1973,40 @@
 st:80/%22%0A
+    DOMJUDGE_USER_PASSWORD = %22%22%0A

Add DOMJUDGE_USER_PASSWORD to default_config.py