Skip to content

Commit 1475213

Browse files
committed
Add toolbar
1 parent 1c1068c commit 1475213

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

django.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ REQUIREMENTS ?= requirements.txt
2525
SYS_PYTHON ?= python3
2626
PY_SENTINAL ?= $(VE)/sentinal
2727
WHEEL_VERSION ?= 0.45.1
28-
PIP_VERSION ?= 25.2
28+
PIP_VERSION ?= 25.3
2929
MAX_COMPLEXITY ?= 10
3030
INTERFACE ?= localhost
3131
RUNSERVER_PORT ?= 8000

quizcon/main/management/commands/integrationserver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from django.core.management import call_command
1818
from django.core.management.base import BaseCommand
1919
from django.db import connection
20+
from django.conf import settings
2021

2122

2223
def reset_test_models():
@@ -89,6 +90,8 @@ def handle(self, *fixture_labels, **options):
8990
'has not been deleted. You can explore it on your own.'
9091
)
9192

93+
# Disable debug toolbar for Cypress/integration tests
94+
settings.DEBUG = False
9295
# - Because we defer to 'runserver' there's no easy way to clean up the
9396
# test database. Therefore, we always autoclobber it
9497
# - Turn off auto-reloading because it causes this handle() method

quizcon/settings_shared.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@
2222
'courseaffils',
2323
'lti_provider',
2424
'quizcon.main',
25+
'debug_toolbar',
2526
]
2627

2728
ALLOWED_HOSTS += ['127.0.0.1'] # noqa
2829

2930
MIDDLEWARE += [ # noqa
30-
'quizcon.main.middleware.WhoDidItMiddleware'
31+
'quizcon.main.middleware.WhoDidItMiddleware',
32+
'debug_toolbar.middleware.DebugToolbarMiddleware',
3133
]
3234

3335
THUMBNAIL_SUBDIR = "thumbs"

0 commit comments

Comments
 (0)