fixed init

This commit is contained in:
MardanovTimur 2019-06-04 00:19:55 +03:00
parent d84793184f
commit 2a82f2bead
2 changed files with 7 additions and 9 deletions

View File

@ -43,13 +43,11 @@ def init_midleware():
DEFAULTS["MIDDLEWARE"] += ("graphene_django.debug.DjangoDebugMiddleware",)
try:
init_midleware()
except Exception:
if not settings.configured:
settings.configure()
finally:
init_midleware()
# try:
# init_midleware()
# except Exception:
# if not settings.configured:
# settings.configure()

View File

@ -57,8 +57,8 @@ setup(
"promise>=2.1",
"lazy-import==0.2.2",
"neomodel-next>=3.3.0",
"django-filter @ git+https://github.com/MardanovTimur/django-filter@neomodel#egg=foo-9999",
"graphene @ git+https://github.com/MardanovTimur/graphene@master#eqq-123",
# "django-filter @ git+https://github.com/MardanovTimur/django-filter@neomodel#egg=foo-9999",
# "graphene @ git+https://github.com/MardanovTimur/graphene@master#eqq-123",
],
setup_requires=["pytest-runner"],
tests_require=tests_require,