Skip to content

Commit

Permalink
Add profile option for silky to settings (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysyngsun authored Jul 15, 2024
1 parent 577e6a9 commit 7775240
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,7 @@ def get_all_config_keys():
SILKY_MAX_RECORDED_REQUESTS_CHECK_PERCENT = get_int(
name="SILKY_MAX_RECORDED_REQUESTS_CHECK_PERCENT", default=10
)
SILKY_PYTHON_PROFILER = get_bool("SILKY_PYTHON_PROFILER", default=False)
SILKY_AUTHENTICATION = True # User must login
SILKY_AUTHORISATION = True
SILKY_PERMISSIONS = lambda user: user.is_superuser # noqa: E731

0 comments on commit 7775240

Please sign in to comment.