mirror of https://github.com/interlegis/sapl.git
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.
71 lines
1.9 KiB
71 lines
1.9 KiB
from os.path import dirname, join
|
|
|
|
BASE_DIR = dirname(dirname(dirname(__file__)))
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.sqlite3',
|
|
# 'NAME': ':memory:',
|
|
'NAME': '/tmp/db',
|
|
},
|
|
}
|
|
|
|
INSTALLED_APPS = (
|
|
'django.contrib.contenttypes',
|
|
'django.contrib.auth',
|
|
'django.contrib.messages',
|
|
'django.contrib.sessions',
|
|
'crud.tests',
|
|
'crispy_forms',
|
|
)
|
|
|
|
ROOT_URLCONF = 'crud.tests.urls'
|
|
|
|
USE_TZ = True
|
|
|
|
SECRET_KEY = 'zzz...'
|
|
|
|
TEMPLATES = [{
|
|
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
|
'DIRS': [join(BASE_DIR, 'crud/tests/templates'),
|
|
join(BASE_DIR, 'templates')],
|
|
'APP_DIRS': True,
|
|
'OPTIONS': {
|
|
'context_processors': [
|
|
'django.template.context_processors.debug',
|
|
'django.template.context_processors.request',
|
|
'django.contrib.auth.context_processors.auth',
|
|
"django.core.context_processors.media",
|
|
"django.core.context_processors.static",
|
|
'django.contrib.messages.context_processors.messages',
|
|
],
|
|
},
|
|
}]
|
|
|
|
STATIC_URL = '/static/'
|
|
|
|
MIDDLEWARE_CLASSES = (
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
# 'django.middleware.locale.LocaleMiddleware',
|
|
# 'django.middleware.common.CommonMiddleware',
|
|
# 'django.middleware.csrf.CsrfViewMiddleware',
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
# 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
|
|
'django.contrib.messages.middleware.MessageMiddleware',
|
|
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
|
# 'django.middleware.security.SecurityMiddleware',
|
|
)
|
|
|
|
SILENCED_SYSTEM_CHECKS = [
|
|
'1_7.W001', # Unset MIDDLEWARE_CLASSES warning
|
|
]
|
|
|
|
|
|
TIME_ZONE = 'America/Sao_Paulo'
|
|
USE_I18N = True
|
|
USE_L10N = False
|
|
USE_TZ = True
|
|
# DATE_FORMAT = 'N j, Y'
|
|
DATE_FORMAT = 'd/m/Y'
|
|
SHORT_DATE_FORMAT = 'd/m/Y'
|
|
DATE_INPUT_FORMATS = ('%d/%m/%Y', '%m-%d-%Y', '%Y-%m-%d')
|
|
|