new extern view added

This commit is contained in:
Benni Bärmann 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
urlpatterns = [
path('', views.index, name='index'),
path('', views.intern, name='intern'),
path('extern', views.extern, name='extern'),
path('saved', views.done, name='done')
]

View File

@ -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")