Update settings to have proper allowed hosts
This commit is contained in:
parent
f677973feb
commit
86ec8c5684
|
|
@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/5.1/ref/settings/
|
|||
"""
|
||||
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
|
@ -25,7 +26,7 @@ SECRET_KEY = 'django-insecure-q_$lvms3r!+meum_0o&b^#vkf75+sy!kax9v^pyr@fipj6&2$a
|
|||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = []
|
||||
ALLOWED_HOSTS = ['localhost', '.taylorberukoff.dev', 'babytracker.taylorberukoff.dev', '72.235.32.92' ]
|
||||
|
||||
|
||||
# Application definition
|
||||
|
|
@ -117,6 +118,7 @@ USE_TZ = True
|
|||
# https://docs.djangoproject.com/en/5.1/howto/static-files/
|
||||
|
||||
STATIC_URL = 'static/'
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
|
||||
|
||||
# Default primary key field type
|
||||
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
|
||||
|
|
|
|||
Loading…
Reference in New Issue