You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.6 KiB
64 lines
1.6 KiB
"""
|
|
Custom settings for each system
|
|
"""
|
|
|
|
DEBUG = True
|
|
|
|
ALLOWED_HOSTS = '*',
|
|
|
|
DEFAULT_FROM_EMAIL = 'admin@yoursite.com'
|
|
|
|
PAGINATION_ITEMS_PER_PAGE = 20
|
|
|
|
# SECURITY WARNING: keep the secret key used in production secret!
|
|
SECRET_KEY = '!!!!!!!!!!!!!!!!!!!!!!!!YOUR SECRET KEY!!!!!!!!!!!!!!!!!!!!!!!!'
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'OPTIONS': {
|
|
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
|
|
'isolation_level': 'read uncommitted'
|
|
},
|
|
#'ENGINE': 'django.db.backends.sqlite3',
|
|
#'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
|
|
'ENGINE': 'django.db.backends.mysql',
|
|
'NAME': 'djing_db',
|
|
'USER': 'DJING_MYSQL_USERNAME', # You can change the user name
|
|
'PASSWORD': 'DJING_MYSQL_PASSWORD', # You can change the password
|
|
'HOST': 'localhost',
|
|
'TEST': {
|
|
'CHARSET': 'utf8',
|
|
'COLLATION': 'utf8_general_ci'
|
|
}
|
|
}
|
|
}
|
|
|
|
# service id for AllPay payment system
|
|
PAY_SERV_ID = '<service id>'
|
|
PAY_SECRET = '<secret>'
|
|
|
|
# path to asterisk dial records
|
|
DIALING_MEDIA = 'path/to/asterisk_records'
|
|
|
|
DEFAULT_SNMP_PASSWORD = 'public'
|
|
|
|
TELEGRAM_BOT_TOKEN = 'bot token'
|
|
|
|
# Telephone or empty
|
|
TELEPHONE_REGEXP = r'^(\+[7,8,9,3]\d{10,11})?$'
|
|
|
|
ASTERISK_MANAGER_AUTH = {
|
|
'username': 'admin',
|
|
'password': 'password',
|
|
'host': '127.0.0.1'
|
|
}
|
|
|
|
# Secret word for auth to api views by hash
|
|
API_AUTH_SECRET = 'your api secret'
|
|
|
|
# Allowed subnet for api
|
|
# Fox example: API_AUTH_SUBNET = ('127.0.0.0/8', '10.0.0.0/8', '192.168.0.0/16')
|
|
API_AUTH_SUBNET = '127.0.0.0/8'
|
|
|
|
# Company name
|
|
COMPANY_NAME = 'Your company name'
|