You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it is weird that silk page can be access when DEBUG=False,
and I add a new setting SILKY_INTERCEPT_FUNC = lambda r: settings.DEBUG
So, for avoid silk be accessed in prod env,I have to delete url endpoint ,I think it control by DEBUG variable is more elegant
The text was updated successfully, but these errors were encountered:
DEBUG = os.getenv("DEBUG_MODE", False) == "True"
TESTING = "test" in sys.argv
if DEBUG and not TESTING:
MIDDLEWARE.append('silk.middleware.SilkyMiddleware')
I think it is weird that silk page can be access when
DEBUG=False
,and I add a new setting
SILKY_INTERCEPT_FUNC = lambda r: settings.DEBUG
So, for avoid silk be accessed in prod env,I have to delete url endpoint ,I think it control by DEBUG variable is more elegant
The text was updated successfully, but these errors were encountered: