Refactor project structure: remove 'home' app and create 'front' app with updated templates, views, and URLs

This commit is contained in:
Jesper Thøgersen 2025-09-20 17:19:43 +02:00
parent 97e8cf465c
commit 269ee8cbce
11 changed files with 6 additions and 18 deletions

0
front/__init__.py Normal file
View file

View file

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

3
front/tests.py Normal file
View file

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

6
front/urls.py Normal file
View file

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

5
front/views.py Normal file
View file

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