Django Projektordner von 'core' in ''django' umbenennen

This commit is contained in:
juhnsa
2025-03-15 21:48:35 +01:00
parent 230944cbcd
commit 55750bcf1f
91 changed files with 0 additions and 0 deletions

View File

3
django/homepage/admin.py Normal file
View File

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

6
django/homepage/apps.py Normal file
View File

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

View File

View File

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

3
django/homepage/tests.py Normal file
View File

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

10
django/homepage/urls.py Normal file
View File

@@ -0,0 +1,10 @@
from django.urls import path
from . import views
app_name = 'homepage' # Verhindert Konflikt mit anderen Apps
urlpatterns = [
path('', views.home, name="home"),
path('impress', views.impress, name="impress"),
path('privacy', views.privacy, name="privacy"),
]

9
django/homepage/views.py Normal file
View File

@@ -0,0 +1,9 @@
from django.shortcuts import render, redirect
def home(request):
return render(request, 'homepage/home.html')
def impress(request):
return render(request, 'homepage/impress.html')
def privacy(request):
return render(request, 'homepage/privacy.html')