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",) DEFAULTS["MIDDLEWARE"] += ("graphene_django.debug.DjangoDebugMiddleware",)
try: # try:
init_midleware() # init_midleware()
except Exception: # except Exception:
if not settings.configured: # if not settings.configured:
settings.configure() # settings.configure()
finally:
init_midleware()

View File

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