Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Added a request history panel to the debug toolbar for easier Ajax debug
NyanKiyoshicf6c3f956d5a
diff --git a/requirements.in b/requirements.inindex 9d3fbe7190..b868676cf8 100644--- a/requirements.in+++ b/requirements.in@@ -54,3 +54,4 @@ uwsgi>=2.0.0 ; platform_system != "Windows"celery[redis]weasyprint>=0.42.2django-debug-toolbar+django-debug-toolbar-request-historydiff --git a/requirements.txt b/requirements.txtindex c694e10132..3b206d9e12 100644--- a/requirements.txt+++ b/requirements.txt@@ -29,6 +29,7 @@ django-bootstrap4==0.0.5django-cache-url==2.0.0django-celery-results==1.0.1django-countries==5.2+django-debug-toolbar-request-history==0.0.7django-debug-toolbar==1.9.1django-elasticsearch-dsl==0.4.4django-environ==0.4.4 # via django-graphql-jwtdiff --git a/saleor/settings.py b/saleor/settings.pyindex bf0cbfcdae..f208288359 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -233,6 +233,26 @@ if DEBUG:MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware')INSTALLED_APPS.append('debug_toolbar')+ DEBUG_TOOLBAR_PANELS = [+ # adds a request history to the debug toolbar+ 'ddt_request_history.panels.request_history.RequestHistoryPanel',++ 'debug_toolbar.panels.versions.VersionsPanel',+ 'debug_toolbar.panels.timer.TimerPanel',+ 'debug_toolbar.panels.settings.SettingsPanel',+ 'debug_toolbar.panels.headers.HeadersPanel',+ 'debug_toolbar.panels.request.RequestPanel',+ 'debug_toolbar.panels.sql.SQLPanel',+ 'debug_toolbar.panels.templates.TemplatesPanel',+ 'debug_toolbar.panels.staticfiles.StaticFilesPanel',+ 'debug_toolbar.panels.cache.CachePanel',+ 'debug_toolbar.panels.signals.SignalsPanel',+ 'debug_toolbar.panels.logging.LoggingPanel',+ 'debug_toolbar.panels.redirects.RedirectsPanel',+ 'debug_toolbar.panels.profiling.ProfilingPanel',+ ]+ DEBUG_TOOLBAR_CONFIG = {+ 'RESULTS_STORE_SIZE': 100}ENABLE_SILK = get_bool_from_env('ENABLE_SILK', False)if ENABLE_SILK: