From 3c1319169a443e70e296448be1f019bd3d0d31d2 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 30 Sep 2020 14:26:08 +0200 Subject: [PATCH] new extern view added --- input/urls.py | 3 ++- input/views.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/input/urls.py b/input/urls.py index 0f97b12..f886e9c 100644 --- a/input/urls.py +++ b/input/urls.py @@ -3,6 +3,7 @@ from django.urls import path from . import views urlpatterns = [ - path('', views.index, name='index'), + path('', views.intern, name='intern'), + path('extern', views.extern, name='extern'), path('saved', views.done, name='done') ] diff --git a/input/views.py b/input/views.py index da60a50..301821f 100644 --- a/input/views.py +++ b/input/views.py @@ -5,7 +5,7 @@ from .forms import ProjectForm from django.http import HttpResponse -def index(request): +def intern(request): # return HttpResponse("Hello, world. You're at the input form") # ProjectFormSet = modelformset_factory(Project, fields='__all__') if request.method == 'POST': @@ -25,3 +25,6 @@ def index(request): def done(request): return HttpResponse("Your data is save now.") + +def extern(request): + return HttpResponse("The world out there is large and dangerous")