]> git.ozlabs.org Git - patchwork/blob - patchwork/settings/dev.py
3f2355d0b2d7a7d8e465a36f872f13e03176f643
[patchwork] / patchwork / settings / dev.py
1 """
2 Development settings for patchwork project.
3
4 These are also used in unit tests.
5
6 Design based on:
7     http://www.revsys.com/blog/2014/nov/21/recommended-django-project-layout/
8 """
9
10 import django
11
12 from base import *
13
14 #
15 # Core settings
16 # https://docs.djangoproject.com/en/1.6/ref/settings/#core-settings
17 #
18
19 # Security
20
21 SECRET_KEY = '00000000000000000000000000000000000000000000000000'
22
23 # Debugging
24
25 DEBUG = True
26
27 # Templates
28
29 TEMPLATE_DEBUG = True
30
31 # Database
32
33 DATABASES = {
34     'default': {
35         'ENGINE': 'django.db.backends.mysql',
36         'HOST': 'localhost',
37         'PORT': '',
38         'USER': os.environ['PW_TEST_DB_USER'],
39         'PASSWORD': os.environ['PW_TEST_DB_PASS'],
40         'NAME': 'patchwork',
41         'TEST_CHARSET': 'utf8',
42     },
43 }
44
45 #
46 # Patchwork settings
47 #
48
49 ENABLE_XMLRPC = True