local_settings.py.j2 1.3 KB
Newer Older
1
2
# Django settings for archlinux project.

3
4
5
6
7
8
9
10
11
12
## Debug settings
DEBUG = False
TEMPLATE_DEBUG = False

## Notification admins
ADMINS = (
    ('Archweb Bugs', 'dan@archlinux.org'),
)

SERVER_EMAIL = 'archweb@archlinux.org'
13
14
15
16

DATABASES = {
    'default': {
        'ENGINE'  : 'django.db.backends.postgresql_psycopg2',
17
        'PORT'    : 5432,
18
        'NAME'    : 'archweb',
19
20
21
22
23
24
25
26
27
28
29
        'USER'    : 'archweb',
        'PASSWORD': '{{ archweb_db_password }}',
        'OPTIONS' : {'autocommit': True, 'application_name': 'archweb'},
    },
}

## Define cache settings
CACHES = {
    'default': {
        'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
30
31
32
    }
}

33
34
35
36
37
38
39
40
41
## Use secure session cookies? Make this true if you want all
## logged-in actions to take place over HTTPS only. If developing
## locally, you will want to use False.
SESSION_COOKIE_SECURE = True

## static files URL
STATIC_URL = '/static/'

## location for saving dev pictures
42
MEDIA_ROOT = '{{ archweb_dir }}/media/img'
43
44
45
46
47

## web url for serving image files
MEDIA_URL = '/img/'

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

# Hostnames we allow this site to be served under
ALLOWED_HOSTS = ['{{ archweb_domain }}']
52

53
## CDN settings
54
CDN_ENABLED = False
55
56

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