Esempio n. 1
0
package_dir = os.path.abspath(os.path.split(__file__)[0])

from config_local import config  # put settings in config_local if you're not running in a fill mysociety vhost
SERVE_STATIC_FILES = True

# Now follows the normal Django stuff.
DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', '*****@*****.**'),
)

MANAGERS = ADMINS

FMS_URL = config.get('FMSGAME_FMS_URL')

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': config.get('FMSGAME_DB_NAME'),
        'USER': config.get('FMSGAME_DB_USER'),
        'PASSWORD': config.get('FMSGAME_DB_PASS'),
        'HOST': config.get('FMSGAME_DB_HOST'),
        'PORT': config.get('FMSGAME_DB_PORT'),
    }
}

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
Esempio n. 2
0
for path in paths:
    if path not in sys.path:
        sys.path.append(path)

try:
    from config_local import config  # put settings in config_local if you're not running in a full mysociety vhost
    SERVE_STATIC_FILES = True
except ImportError:
    SERVE_STATIC_FILES = False
    from mysociety import config
    config.set_file(os.path.abspath(package_dir + "/../../conf/general"))


# Now follows the normal Django stuff.

DEBUG = config.get('DEBUG', False)
TEMPLATE_DEBUG = DEBUG

SERVER_EMAIL = config.get('BUGS_EMAIL')
ADMINS = (
    ('mySociety bugs', config.get('BUGS_EMAIL')),
)
DEFAULT_FROM_EMAIL = 'Barnet Bin Alerts <%s>' % config.get('BUGS_EMAIL')

MANAGERS = ADMINS

DATABASE_ENGINE = 'postgresql_psycopg2'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = config.get('BINS_DB_NAME')
DATABASE_USER = config.get('BINS_DB_USER')
DATABASE_PASSWORD = config.get('BINS_DB_PASS')
DATABASE_HOST = config.get('BINS_DB_HOST')
Esempio n. 3
0
for path in paths:
    if path not in sys.path:
        sys.path.append(path)

try:
    from config_local import config  # put settings in config_local if you're not running in a fill mysociety vhost
    SERVE_STATIC_FILES = True
except ImportError:
    SERVE_STATIC_FILES = False
    from mysociety import config
    config.set_file(os.path.abspath(package_dir + "/../../conf/general"))

# Django settings for pyc project.

if int(config.get('STAGING')):
    DEBUG = True
    STAGING = True
else:
    DEBUG = False
    STAGING = False

# configure logging
if DEBUG:
    logging.basicConfig(
        level = logging.DEBUG,
        format = '%(asctime)s %(levelname)s %(message)s',
    )
else:
    logging.basicConfig(
        level = logging.WARN,
Esempio n. 4
0
for path in paths:
    if path not in sys.path:
        sys.path.append(path)

try:
    from config_local import config  # put settings in config_local if you're not running in a fill mysociety vhost
    SERVE_STATIC_FILES = True
except ImportError:
    SERVE_STATIC_FILES = False
    from mysociety import config
    config.set_file(os.path.abspath(package_dir + "/../../conf/general"))

# Now follows the normal Django stuff.

if int(config.get('STAGING')):
    DEBUG = True
else:
    DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
    # ('Your Name', '*****@*****.**'),
)

MANAGERS = ADMINS

# TODO - should we use 'django.contrib.gis.db.backends.postgis'?
DATABASE_ENGINE   = 'postgresql_psycopg2'
DATABASE_NAME     = config.get('UKONLINETUTORDB_DB_NAME')
DATABASE_USER     = config.get('UKONLINETUTORDB_DB_USER')
DATABASE_PASSWORD = config.get('UKONLINETUTORDB_DB_PASS')
Esempio n. 5
0
    SERVE_STATIC_FILES = False
    from mysociety import config
    config.set_file(os.path.abspath(package_dir + "/../conf/general"))

# Now follows the normal Django stuff.
DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', '*****@*****.**'),
)

MANAGERS = ADMINS

DATABASE_ENGINE   = 'postgresql_psycopg2'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME     = config.get('FMSGAME_DB_NAME')
DATABASE_USER     = config.get('FMSGAME_DB_USER')
DATABASE_PASSWORD = config.get('FMSGAME_DB_PASS')
DATABASE_HOST     = config.get('FMSGAME_DB_HOST')
DATABASE_PORT     = config.get('FMSGAME_DB_PORT')
FMS_URL           = config.get('FMSGAME_FMS_URL')

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.
# If running in a Windows environment this must be set to the same as your
# system time zone.
TIME_ZONE = 'America/Chicago'

# Language code for this installation. All choices can be found here:
# http://www.i18nguy.com/unicode/language-identifiers.html
Esempio n. 6
0
package_dir = os.path.abspath(os.path.split(__file__)[0])

from config_local import config  # put settings in config_local if you're not running in a fill mysociety vhost
SERVE_STATIC_FILES = True

# Now follows the normal Django stuff.
DEBUG = True
TEMPLATE_DEBUG = DEBUG

ADMINS = (
    # ('Your Name', '*****@*****.**'),
)

MANAGERS = ADMINS

FMS_URL           = config.get('FMSGAME_FMS_URL')

DATABASES = {
    'default': {
        'ENGINE':  'django.db.backends.postgresql_psycopg2',
        'NAME':     config.get('FMSGAME_DB_NAME'),
        'USER':     config.get('FMSGAME_DB_USER'),
        'PASSWORD': config.get('FMSGAME_DB_PASS'),
        'HOST':     config.get('FMSGAME_DB_HOST'),
        'PORT':     config.get('FMSGAME_DB_PORT'),
    }
}

# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems.