Web M&M
https://mam.matfyz.cz
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.
84 lines
1.9 KiB
84 lines
1.9 KiB
import os.path
|
|
|
|
#
|
|
# Lokalni / vyvojove nastaveni settings.py
|
|
#
|
|
# Pro vyber tohoto nastaveni muzete pouzit tez:
|
|
# DJANGO_SETTINGS_MODULE=mamweb.settings_local ./manage.py ...
|
|
#
|
|
|
|
# Import common settings
|
|
from .settings_common import *
|
|
|
|
MIDDLEWARE += (
|
|
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
|
)
|
|
|
|
# Quick-start development settings - unsuitable for production
|
|
# See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/
|
|
|
|
INSTALLED_APPS += (
|
|
'debug_toolbar',
|
|
'django_extensions',
|
|
)
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
DEBUG = True
|
|
INTERNAL_IPS = ['127.0.0.1']
|
|
|
|
TEMPLATES[0]['OPTIONS']['debug'] = True
|
|
|
|
ALLOWED_HOSTS = ['127.0.0.1']
|
|
|
|
# Database
|
|
# https://docs.djangoproject.com/en/1.7/ref/settings/#databases
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
'NAME': os.path.join(BASE_DIR, 'db-local.sqlite3'),
|
|
}
|
|
}
|
|
#DATABASES = {
|
|
# 'default': {
|
|
# 'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
# 'NAME': 'mam_local',
|
|
# 'USER': 'mam',
|
|
# },
|
|
#}
|
|
|
|
# LOGGING
|
|
LOGGING = {
|
|
'version': 1,
|
|
'disable_existing_loggers': True,
|
|
'filters': {
|
|
'require_debug_false': {
|
|
'()': 'django.utils.log.RequireDebugFalse'
|
|
}
|
|
},
|
|
'formatters': {
|
|
'simple': {
|
|
'format': '%(asctime)s - %(name)s - %(levelname)-8s - %(message)s',
|
|
},
|
|
},
|
|
'handlers': {
|
|
'dummy': {
|
|
'class': 'logging.NullHandler',
|
|
},
|
|
'console': {
|
|
'level': 'DEBUG',
|
|
'class': 'logging.StreamHandler',
|
|
'formatter': 'simple',
|
|
},
|
|
},
|
|
'loggers': {
|
|
'': {
|
|
'handlers': ['console'],
|
|
'level': 'DEBUG',
|
|
'propagate': False,
|
|
},
|
|
},
|
|
}
|
|
|
|
# set to 'DEBUG' for EXTRA verbose output
|
|
# LOGGING['handlers']['console']['level'] = 'INFO'
|
|
|