From e49ff266410546ba2686e1f70ef3245b107fa69d Mon Sep 17 00:00:00 2001 From: Samuel Zielke Date: Wed, 26 Mar 2025 18:38:41 +0100 Subject: [PATCH] =?UTF-8?q?Bitwert=20Calculator=20hinzuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crewpulse/urls.py | 3 +- main/templates/main/calculator.html | 76 +++++++++++++++++++++++++++++ main/views.py | 5 +- 3 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 main/templates/main/calculator.html diff --git a/crewpulse/urls.py b/crewpulse/urls.py index 4ae476e..b9152d1 100644 --- a/crewpulse/urls.py +++ b/crewpulse/urls.py @@ -20,5 +20,6 @@ import main.views as main urlpatterns = [ path('admin/', admin.site.urls), - path('', admin.site.urls) + # path('', admin.site.urls), + path('calculator/', main.calculator) ] diff --git a/main/templates/main/calculator.html b/main/templates/main/calculator.html new file mode 100644 index 0000000..fb95a10 --- /dev/null +++ b/main/templates/main/calculator.html @@ -0,0 +1,76 @@ + + + + + + Bitwert Berechnung + + + +

Wochentage Bitwert Berechnung

+
+ + + + + + + + + + + +

+ +
+ +
+ + + + \ No newline at end of file diff --git a/main/views.py b/main/views.py index 2bcff9f..9fe8762 100644 --- a/main/views.py +++ b/main/views.py @@ -3,4 +3,7 @@ from django.http import HttpResponse # Create your views here. def home(request): - return HttpResponse("HELLO WORLD") \ No newline at end of file + return HttpResponse("HELLO WORLD") + +def calculator(request): + return render(request, "main/calculator.html", {}) \ No newline at end of file