#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Flask application default config:
# http://flask.pocoo.org/docs/config/#configuring-from-files
# https://github.com/mbr/flask-appconfig


project_name = u'Ninhursag'


class Default(object):
    APP_NAME = project_name

    DEBUG = False
    TESTING = False

    # Servers and URLs
    SERVER_NAME = 'localhost:5000'

    # Authentication etc
    # To generate: import os; os.urandom(24)
    SECRET_KEY = 'some-secret-key'
    CSRF_ENABLED = True

    # API
    API_SERVER = SERVER_NAME
    API_TOKEN = 'some-api-token'

    # Flat pages
    FLATPAGES_ROOT = 'pages/flat'
    FLATPAGES_EXTENSION = '.md'
    FLATPAGES_MARKDOWN_EXTENSIONS = []

    DATA_DIR = 'static/data'


class Dev(Default):
    APP_NAME = project_name + ' (dev)'

    DEBUG = True

    SERVER_NAME = '0.0.0.0:5000'
    API_SERVER = SERVER_NAME


class Testing(Default):
    TESTING = True
    CSRF_ENABLED = False


class Production(Default):
    pass

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Flask application default config:
# http://flask.pocoo.org/docs/config/#configuring-from-files
# https://github.com/mbr/flask-appconfig


project_name = u'Ninhursag'


class Default(object):
    APP_NAME = project_name

    DEBUG = False
    TESTING = False

    # Servers and URLs
    SERVER_NAME = 'localhost:5000'

    # Authentication etc
    # To generate: import os; os.urandom(24)
    SECRET_KEY = 'some-secret-key'
    CSRF_ENABLED = True

    # API
    API_SERVER = SERVER_NAME
    API_TOKEN = 'some-api-token'

    # Flat pages
    FLATPAGES_ROOT = 'pages/flat'
    FLATPAGES_EXTENSION = '.md'
    FLATPAGES_MARKDOWN_EXTENSIONS = []

    DATA_DIR = 'static/data'


class Dev(Default):
    APP_NAME = project_name + ' (dev)'
    DEBUG = True


class Testing(Default):
    TESTING = True
    CSRF_ENABLED = False


class Production(Default):
    pass

Use localhost:5000 for the dev server by default.
Use localhost:5000 for the dev server by default.
