local_settings.py.j2 743 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Django settings for archlinux project.


## Database settings
DATABASES = {
    'default': {
        'ENGINE'  : 'django.db.backends.postgresql_psycopg2',
        'NAME'    : 'archweb',
        'USER'    : 'archweb_update',
        'PASSWORD': '{{ postgres_users.archweb_update }}',
        'HOST'    : 'gudrun.archlinux.org',
        'OPTIONS' : {
            'autocommit': True,
            'application_name': 'archweb',
            'sslmode': 'require',
        }
    }
}

## Make this unique, and don't share it with anybody.
SECRET_KEY = '{{ archweb_secret_key }}'

## Cache settings
CACHE_BACKEND = 'memcached://gudrun.archlinux.org:11211'
CACHE_MIDDLEWARE_SECONDS = 300
CACHE_MIDDLEWARE_KEY_PREFIX = 'arch'

# vim: set ts=4 sw=4 et: