]> git.ozlabs.org Git - patchwork/blob - apps/patchwork/settings/dev.py
6e373cc74a29b55cce86ad16e9ca84d6dde94bf2
[patchwork] / apps / 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 if django.VERSION >= (1, 7):
46     TEST_RUNNER = 'django.test.runner.DiscoverRunner'
47
48 #
49 # Patchwork settings
50 #
51
52 ENABLE_XMLRPC = True