Browse Source

new extern view added

master
Benni Baermann 4 years ago
parent
commit
3c1319169a
2 changed files with 6 additions and 2 deletions
  1. +2
    -1
      input/urls.py
  2. +4
    -1
      input/views.py

+ 2
- 1
input/urls.py 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')
]

+ 4
- 1
input/views.py 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")

Loading…
Cancel
Save