new extern view added

This commit is contained in:
Benni Baermann 2020-09-30 14:26:08 +02:00
parent 866bd95828
commit 3c1319169a
2 changed files with 6 additions and 2 deletions

View file

@ -3,6 +3,7 @@ from django.urls import path
from . import views from . import views
urlpatterns = [ urlpatterns = [
path('', views.index, name='index'), path('', views.intern, name='intern'),
path('extern', views.extern, name='extern'),
path('saved', views.done, name='done') path('saved', views.done, name='done')
] ]

View file

@ -5,7 +5,7 @@ from .forms import ProjectForm
from django.http import HttpResponse from django.http import HttpResponse
def index(request): def intern(request):
# return HttpResponse("Hello, world. You're at the input form") # return HttpResponse("Hello, world. You're at the input form")
# ProjectFormSet = modelformset_factory(Project, fields='__all__') # ProjectFormSet = modelformset_factory(Project, fields='__all__')
if request.method == 'POST': if request.method == 'POST':
@ -25,3 +25,6 @@ def index(request):
def done(request): def done(request):
return HttpResponse("Your data is save now.") return HttpResponse("Your data is save now.")
def extern(request):
return HttpResponse("The world out there is large and dangerous")