Browse Source

some more cleanup

master
Benni Baermann 4 years ago
parent
commit
6f87ea69cc
2 changed files with 0 additions and 36 deletions
  1. +0
    -17
      input/templates/input/project.html
  2. +0
    -19
      input/views.py

+ 0
- 17
input/templates/input/project.html 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>

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

Loading…
Cancel
Save