summaryrefslogtreecommitdiffstats
path: root/patchwork/settings/production.example.py
blob: fd0a1f62b5bfbc60f429ed50d10ab845c9e5ada3 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
"""
Sample production-ready settings for patchwork project.

Most of these are commented out as they will be installation dependent.

Design based on:
    http://www.revsys.com/blog/2014/nov/21/recommended-django-project-layout/
"""

from base import *

#
# Core settings
# https://docs.djangoproject.com/en/1.6/ref/settings/#core-settings
#

# Security
#
# You'll need to replace this to a random string. The following python code can
# be used to generate a secret key:
#
#      import string, random
#      chars = string.letters + string.digits + string.punctuation
#      print repr("".join([random.choice(chars) for i in range(0,50)]))

# SECRET_KEY = '00000000000000000000000000000000000000000000000000'

# Email
#
# Replace this with your own details

ADMINS = (
#    ('Jeremy Kerr', 'jk@ozlabs.org'),
)

DEFAULT_FROM_EMAIL = 'Patchwork <patchwork@patchwork.example.com>'
NOTIFICATION_FROM_EMAIL = DEFAULT_FROM_EMAIL

# Database
#
# If you're using a postgres database, connecting over a local unix-domain
# socket, then the following setting should work for you. Otherwise,
# see https://docs.djangoproject.com/en/1.7/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'patchwork',
    },
}

#
# Static files settings. Set this to the 
# https://docs.djangoproject.com/en/1.7/ref/settings/#static-files
#

STATIC_ROOT = '/srv/patchwork/htdocs/static'