new extern view added
This commit is contained in:
parent
866bd95828
commit
3c1319169a
|
@ -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')
|
||||||
]
|
]
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue