some more cleanup

This commit is contained in:
Benni Baermann 2020-10-21 12:06:30 +02:00
parent e916a9a86b
commit 6f87ea69cc
2 changed files with 0 additions and 36 deletions

View file

@ -1,17 +0,0 @@
{% load static %}
<script type="text/javascript" src="/admin/jsi18n/"></script>
<script type="text/javascript" src="{% static 'admin/js/core.js' %}"></script>
<script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script>
<script type="text/javascript" src="{% static 'admin/js/jquery.init.js' %}"></script>
{{ form.media }}
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/base.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/widgets.css' %}" />
<form action="" method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Submit">
</form>

View file

@ -37,25 +37,6 @@ def deny(request, choice, pk):
return HttpResponse(f'ERROR! UNKNWON CHOICE TYPE {choice}!') return HttpResponse(f'ERROR! UNKNWON CHOICE TYPE {choice}!')
# def project(request):
# # return HttpResponse("Hello, world. You're at the input form")
# # ProjectFormSet = modelformset_factory(Project, fields='__all__')
# if request.method == 'POST':
# print('POST detected')
# form = ProjectForm(request.POST, request.FILES)
# if form.is_valid():
# print('form valid')
# form.save()
#
# # do something.
# else:
# print("form not valid")
# else:
# print
# form = ProjectForm()
# return render(request, 'input/project.html', {'form': form})
def done(request): def done(request):
return HttpResponse("Your data is save now.") return HttpResponse("Your data is save now.")