Fixed debug setting and minor cleanup

This commit is contained in:
John Mullins
2024-11-11 11:37:10 +11:00
parent 6bd2664352
commit c50ebc9e2a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ load_dotenv()
SECRET_KEY = os.environ.get('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ.get("DEBUG", default=False)
DEBUG = (os.environ.get("DEBUG", default=False).lower() == 'true')
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS').split(' ')
+1 -1
View File
@@ -2,7 +2,7 @@ import datetime
from django.db.models import Q
from coord.models import Bus, BusStop, TravellerRoute, Driver, Traveller, Shuttle
from .models import Bus, BusStop, TravellerRoute, Driver, Traveller, Shuttle
def bus_roll_context(queryset=None, include_bus_stops=True):