Compatibility Django 2.1

This commit is contained in:
Dmitriy Sokolov 2019-04-05 14:16:13 +03:00
parent 12456b95e4
commit 95af201ba8
No known key found for this signature in database
GPG Key ID: DE2C98901898AB74
2 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,6 @@
0.3.15 (2019-04-05)
- Compatibility Django 2.2
0.3.14 (2019-03-25)
- Added French translation
- Added German translation

View File

@ -15,6 +15,7 @@ settings.configure(
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.sessions',
'django.contrib.messages',
'rangefilter',
),
DATABASES={
@ -23,7 +24,30 @@ settings.configure(
TEST_RUNNER='django.test.runner.DiscoverRunner',
USE_TZ=True,
TIME_ZONE='UTC',
SITE_ID=1,
STATIC_URL='/static/',
TEMPLATES=[
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
'OPTIONS': {
'debug': True,
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
}
},
],
MIDDLEWARE=(
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
),
PASSWORD_HASHERS=(
'django.contrib.auth.hashers.MD5PasswordHasher',
),
)
django.setup()