from django.conf import settings
from django.contrib import auth
from django.contrib.auth.decorators import login_required
from django.conf import settings
from django.contrib import auth
from django.contrib.auth.decorators import login_required
from django.core.cache import cache
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.core.cache import cache
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
def exception_test(request):
msg = request.GET.get('msg')
if msg:
raise Exception('Exception test: %s' % msg)
else:
def exception_test(request):
msg = request.GET.get('msg')
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/'})