]> git.ozlabs.org Git - patchwork/blob - patchwork/settings/production.example.py
fd0a1f62b5bfbc60f429ed50d10ab845c9e5ada3
[patchwork] / patchwork / settings / production.example.py
1 """
2 Sample production-ready settings for patchwork project.
3
4 Most of these are commented out as they will be installation dependent.
5
6 Design based on:
7     http://www.revsys.com/blog/2014/nov/21/recommended-django-project-layout/
8 """
9
10 from base import *
11
12 #
13 # Core settings
14 # https://docs.djangoproject.com/en/1.6/ref/settings/#core-settings
15 #
16
17 # Security
18 #
19 # You'll need to replace this to a random string. The following python code can
20 # be used to generate a secret key:
21 #
22 #      import string, random
23 #      chars = string.letters + string.digits + string.punctuation
24 #      print repr("".join([random.choice(chars) for i in range(0,50)]))
25
26 # SECRET_KEY = '00000000000000000000000000000000000000000000000000'
27
28 # Email
29 #
30 # Replace this with your own details
31
32 ADMINS = (
33 #    ('Jeremy Kerr', 'jk@ozlabs.org'),
34 )
35
36 DEFAULT_FROM_EMAIL = 'Patchwork <patchwork@patchwork.example.com>'
37 NOTIFICATION_FROM_EMAIL = DEFAULT_FROM_EMAIL
38
39 # Database
40 #
41 # If you're using a postgres database, connecting over a local unix-domain
42 # socket, then the following setting should work for you. Otherwise,
43 # see https://docs.djangoproject.com/en/1.7/ref/settings/#databases
44
45 DATABASES = {
46     'default': {
47         'ENGINE': 'django.db.backends.postgresql_psycopg2',
48         'NAME': 'patchwork',
49     },
50 }
51
52 #
53 # Static files settings. Set this to the 
54 # https://docs.djangoproject.com/en/1.7/ref/settings/#static-files
55 #
56
57 STATIC_ROOT = '/srv/patchwork/htdocs/static'
58