summaryrefslogtreecommitdiff
path: root/pgcommitfest/local_settings_example.py
blob: d3648ccbb00e846f45338c10e90e1d8aa8b74da8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Enable more debugging information
DEBUG = True
# Prevent logging to try to send emails to postgresql.org admins.
# Use the default Django logging settings instead.
LOGGING = None

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'pgcommitfest',
        'USER': 'postgres',
        'PASSWORD': 'postgres',
        'HOST': '0.0.0.0',
    }
}

# Disables the PostgreSQL.ORG authentication.
# Use the default built-in Django authentication module.
AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']

# The only login page we have in development is the Django admin login page.
# It's not great, because it won't redirect to the page you were trying to
# access, but it's better than a HTTP 500 error.
PGAUTH_REDIRECT = '/admin/login/'