Merge pull request #7481 from smithdc1/app-config

default_app_config application variable is deprecated in Django 3.2
This commit is contained in:
Xavier Ordoquy 2020-10-06 22:16:29 +02:00 committed by GitHub
commit ebc1ebf0c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -7,6 +7,8 @@ ______ _____ _____ _____ __
\_| \_\____/\____/ \_/ |_| |_| \__,_|_| |_| |_|\___| \_/\_/ \___/|_| |_|\_|
"""
import django
__title__ = 'Django REST framework'
__version__ = '3.12.1'
__author__ = 'Tom Christie'
@ -22,6 +24,8 @@ HTTP_HEADER_ENCODING = 'iso-8859-1'
# Default datetime input and output formats
ISO_8601 = 'iso-8601'
if django.VERSION < (3, 2):
default_app_config = 'rest_framework.apps.RestFrameworkConfig'

View File

@ -1 +1,4 @@
import django
if django.VERSION < (3, 2):
default_app_config = 'rest_framework.authtoken.apps.AuthTokenConfig'