mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 20:10:10 +03:00
Remove 'django.setup()' compat import
This commit is contained in:
parent
652e30d7fe
commit
745dc798f1
|
@ -1,3 +1,6 @@
|
||||||
|
import django
|
||||||
|
|
||||||
|
|
||||||
def pytest_configure():
|
def pytest_configure():
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
@ -61,8 +64,4 @@ def pytest_configure():
|
||||||
'guardian',
|
'guardian',
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
django.setup()
|
||||||
import django
|
|
||||||
django.setup()
|
|
||||||
except AttributeError:
|
|
||||||
pass
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user