2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Add secure development server in DEBUG mode

This commit is contained in:
Kálmán Rózsahegyi
2022-03-26 19:27:12 +01:00
parent 1bdebe1324
commit 84717f8103
2 changed files with 5 additions and 0 deletions

View File

@ -311,6 +311,10 @@ if DEBUG and CONFIG.get('debug_toolbar', False): # pragma: no cover
INSTALLED_APPS.append('debug_toolbar')
MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware')
# Allow secure http developer server in debug mode
if DEBUG:
INSTALLED_APPS.append('sslserver')
# InvenTree URL configuration
# Base URL for admin pages (default="admin")