handle custom error templates

This commit is contained in:
2025-09-08 09:59:16 +02:00
parent 14fe0ded02
commit 2fd139de55
9 changed files with 57 additions and 8 deletions

View File

@@ -3,6 +3,6 @@ import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'oc_lettings_site.settings')
'oc_lettings_site.settings')
application = get_asgi_application()

View File

@@ -13,9 +13,9 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = 'fp$9^593hsriajg$_%=5trot9g!1qa@ew(o-1#@=&4%=hp46(s'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ["*"]
# Application definition
@@ -117,4 +117,4 @@ USE_TZ = True
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
STATIC_URL = '/static/'
STATICFILES_DIRS = [BASE_DIR / "static",]
STATICFILES_DIRS = [BASE_DIR / "static"]