|
@ -1,8 +1,7 @@ |
|
|
from django.shortcuts import render |
|
|
from django.shortcuts import render |
|
|
from django.forms import modelformset_factory |
|
|
from django.forms import modelformset_factory |
|
|
from .models import Project |
|
|
from .models import Project |
|
|
# Create your views here. |
|
|
|
|
|
# from django.http import HttpResponse |
|
|
|
|
|
|
|
|
from django.http import HttpResponse |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def index(request): |
|
|
def index(request): |
|
@ -16,3 +15,6 @@ def index(request): |
|
|
else: |
|
|
else: |
|
|
formset = ProjectFormSet() |
|
|
formset = ProjectFormSet() |
|
|
return render(request, 'input/project.html', {'formset': formset}) |
|
|
return render(request, 'input/project.html', {'formset': formset}) |
|
|
|
|
|
|
|
|
|
|
|
def done(request): |
|
|
|
|
|
return HttpResponse("Your data is save now.") |