first commit

This commit is contained in:
Joren de Graaf
2026-10-12 20:49:13 +02:00
commit 16ab9a3f8d
31 changed files with 2300 additions and 0 deletions
View File
+5
View File
@@ -0,0 +1,5 @@
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
application = get_asgi_application()
+27
View File
@@ -0,0 +1,27 @@
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = "django-insecure-local-design-showcase-only"
DEBUG = True
ALLOWED_HOSTS = ["localhost", "127.0.0.1"]
INSTALLED_APPS = [
"django.contrib.contenttypes",
"django.contrib.staticfiles",
"core",
]
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.middleware.common.CommonMiddleware",
]
ROOT_URLCONF = "config.urls"
TEMPLATES = [{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [],
"APP_DIRS": True,
"OPTIONS": {"context_processors": ["django.template.context_processors.request"]},
}]
WSGI_APPLICATION = "config.wsgi.application"
ASGI_APPLICATION = "config.asgi.application"
STATIC_URL = "static/"
STATICFILES_DIRS = [BASE_DIR / "dist"] if (BASE_DIR / "dist").exists() else []
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
+10
View File
@@ -0,0 +1,10 @@
from django.urls import path
from core import views
urlpatterns = [
path("", views.today, name="today"),
path("health/", views.health, name="health"),
path("energy/", views.energy, name="energy"),
path("home/", views.home, name="home"),
path("showcase/", views.showcase, name="showcase"),
]
+5
View File
@@ -0,0 +1,5 @@
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
application = get_wsgi_application()