-
Notifications
You must be signed in to change notification settings - Fork 80
/
settings_local.py.example
36 lines (31 loc) · 1.1 KB
/
settings_local.py.example
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
import sys
from settings import *
DEBUG = True
TEMPLATE_DEBUG = True
DATABASES = {
'default': {
'ENGINE': os.getenv('SILVER_DB_ENGINE', 'django.db.backends.sqlite3'),
'NAME': os.getenv('SILVER_DB_NAME', 'db.sqlite'),
'USER': os.getenv('SILVER_DB_USER', 'silver'),
'PASSWORD': os.getenv('SILVER_DB_PASSWORD', 'password'),
'HOST': os.getenv('SILVER_DB_HOST', ''),
'PORT': os.getenv('SILVER_DB_PORT', '3306'),
'TEST': {
'CHARSET': 'utf8'
}
}
}
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '0.0.0.0']
if 'test' in sys.argv:
# faster tests
PASSWORD_HASHERS = [
'django.contrib.auth.hashers.MD5PasswordHasher',
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
'django.contrib.auth.hashers.BCryptPasswordHasher',
'django.contrib.auth.hashers.SHA1PasswordHasher',
'django.contrib.auth.hashers.CryptPasswordHasher',
]
DEBUG = False
TEMPLATE_DEBUG = False