· 9 years ago · Sep 21, 2016, 07:22 PM
1# -*- coding: utf-8 -*-
2
3from .base import * # noqa
4
5# DEBUG
6# ------------------------------------------------------------------------------
7DEBUG = True
8TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
9ALLOWED_HOSTS = ["*"]
10
11# SECRET CONFIGURATION
12# ------------------------------------------------------------------------------
13# See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
14# Note: This key only used for development and testing.
15
16DATABASES = {
17 'default': {
18 'CONN_MAX_AGE': 0,
19 # 'ENGINE': 'django.db.backends.postgresql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
20 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
21 'NAME': 'knpay.db', # Or path to database file if using sqlite3.
22 # 'USER': 'knpay_user',
23 # 'PASSWORD': 'knpay',
24 'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
25 'PORT': '', # Set to empty string for default.
26 }
27}
28
29# Mail settings
30# ------------------------------------------------------------------------------
31
32EMAIL_PORT = 1025
33
34EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
35
36# CACHING
37# ------------------------------------------------------------------------------
38CACHES = {
39 'default': {
40 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
41 'LOCATION': ''
42 }
43}
44
45INTERNAL_IPS = ['127.0.0.1', '10.0.2.2', ]
46
47# django-extensions
48# ------------------------------------------------------------------------------
49# INSTALLED_APPS += ('django_extensions', )
50
51# TESTING
52# ------------------------------------------------------------------------------
53TEST_RUNNER = 'django.test.runner.DiscoverRunner'
54
55SECURE_SSL_REDIRECT = False
56
57SECRET_KEY = 'wm&k$7i#!g8vhpg@z!fw&rb*nvb6^=90vivv$3s7y%yfra&%t'
58
59AUTH_PASSWORD_VALIDATORS = []
60
61PROTOCOL = 'http'
62
63# test