This commit is contained in:
Jesper Thøgersen 2025-09-20 15:54:50 +02:00
commit 97e8cf465c
19 changed files with 542 additions and 0 deletions

0
home/__init__.py Normal file
View file

3
home/admin.py Normal file
View file

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

6
home/apps.py Normal file
View file

@ -0,0 +1,6 @@
from django.apps import AppConfig
class HomeConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'home'

View file

3
home/models.py Normal file
View file

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Hello</title>
</head>
<body>
<h1>Hello, {{ name }}!</h1>
</body>
</html>

3
home/tests.py Normal file
View file

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

6
home/urls.py Normal file
View file

@ -0,0 +1,6 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='home'),
]

5
home/views.py Normal file
View file

@ -0,0 +1,5 @@
from django.shortcuts import render
def index(request):
context = {'name': 'Jesper'}
return render(request, 'index.html', context)