forked from absoludity/django-financial-transactions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_settings.py
56 lines (41 loc) · 1.13 KB
/
test_settings.py
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
SECRET_KEY = 'test'
DEBUG = True
ALLOWED_HOSTS = '*'
ROOT_URLCONF = 'financial_transactions.urls'
DEBUG_TOOLBAR_PATCH_SETTINGS = False
STATIC_URL = '/static/'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '/tmp/test_financial_transactions.db',
}
}
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.sites',
'django.contrib.sessions',
'django.contrib.staticfiles',
'categories',
'django.contrib.contenttypes',
'financial_transactions',
]
"""
To set SITE_ID:
Open: python manage.py shell
there:
from django.contrib.sites.models import Site
new_site = Site.objects.create(domain='127.0.0.1', name='127.0.0.1')
print new_site.id
"""
SITE_ID = 2
MIDDLEWARE_CLASSES = [
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
]
APPEND_SLASH = True
SOUTH_DATABASE_ADAPTERS = {}
# Support different currency formats.
USE_L10N = True