Fixed debug setting and minor cleanup
This commit is contained in:
@@ -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(' ')
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user