2 Sample production-ready settings for patchwork project.
4 Most of these are commented out as they will be installation dependent.
7 http://www.revsys.com/blog/2014/nov/21/recommended-django-project-layout/
14 # https://docs.djangoproject.com/en/1.6/ref/settings/#core-settings
19 # You'll need to replace this to a random string. The following python code can
20 # be used to generate a secret key:
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)]))
26 # SECRET_KEY = '00000000000000000000000000000000000000000000000000'
30 # Replace this with your own details
33 # ('Jeremy Kerr', 'jk@ozlabs.org'),
36 DEFAULT_FROM_EMAIL = 'Patchwork <patchwork@patchwork.example.com>'
37 NOTIFICATION_FROM_EMAIL = DEFAULT_FROM_EMAIL
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
47 'ENGINE': 'django.db.backends.postgresql_psycopg2',
53 # Static files settings
54 # https://docs.djangoproject.com/en/1.7/ref/settings/#static-files
57 STATIC_ROOT = '/srv/patchwork/htdocs/static'