I am getting the following error message. why is this?
settings.py
from .base import *
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = "django-insecure-!j2$*!67m*bpb77-@$=z_z)tj553$_*&3pe4vzu6cdk*qw)jd^"
ALLOWED_HOSTS = ["*", "localhost:8000"]
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
# Database
# https://docs.djangoproject.com/en/5.0/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql_psycopg2",
"HOST": "localhost",
# "HOST": "aws-0-us-west-1.pooler.supabase.com",
"NAME": "postgres",
"USER": "postgres",
"PASSWORD": "postgres",
# "USER": "postgres.qhvgpdhzebphqnybebkl",
# "PASSWORD": "dfwpythoneers",
}
}
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/5.0/howto/static-files/
STATIC_URL = "static/"
error message
Andrew@DESKTOP-CGDG53G MINGW64 ~/Desktop/django_projects/django_insurance (second_branch)
$ python manage.py runserver
CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False.