Remove 'django.setup()' compat import

This commit is contained in:
Ryan P Kilby 2017-12-21 13:18:08 -05:00
parent 652e30d7fe
commit 745dc798f1

View File

@ -1,3 +1,6 @@
import django
def pytest_configure():
from django.conf import settings
@ -61,8 +64,4 @@ def pytest_configure():
'guardian',
)
try:
import django
django.setup()
except AttributeError:
pass