--- /dev/null
+{% extends "base/base.html" %}
+
+{% block body %}
+ <form method="post" action="{{ action }}">
+ {% csrf_token %}
+ <input type="submit" value="send post"/>
+ </form>
+{% endblock body %}
urlpatterns += [
url(r'^error-test/$', views.exception_test),
+ # url(r'^post-test/$', views.post_test),
]
if msg:
raise Exception('Exception test: %s' % msg)
else:
- raise Exception('Exception test')
\ No newline at end of file
+ raise Exception('Exception test')
+
+
+def post_test(request):
+ return render(request, 'post_test.html', {'action': '/api/reading/jego-zasady/complete/'})