mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
fixed settings
This commit is contained in:
parent
02d7090d6f
commit
a4949abe58
|
@ -37,13 +37,15 @@ DEFAULTS = {
|
|||
"RELAY_CONNECTION_MAX_LIMIT": 100,
|
||||
}
|
||||
|
||||
|
||||
if not settings.configured:
|
||||
try:
|
||||
if settings.DEBUG:
|
||||
DEFAULTS["MIDDLEWARE"] += ("graphene_django.debug.DjangoDebugMiddleware",)
|
||||
except Exception:
|
||||
if not settings.configured:
|
||||
# configure the settings
|
||||
settings.configure()
|
||||
|
||||
if settings.DEBUG:
|
||||
DEFAULTS["MIDDLEWARE"] += ("graphene_django.debug.DjangoDebugMiddleware",)
|
||||
|
||||
|
||||
# List of settings that may be in string import notation.
|
||||
IMPORT_STRINGS = ("MIDDLEWARE", "SCHEMA")
|
||||
|
|
Loading…
Reference in New Issue
Block a user