Simple experimental view
parent
f4e2960ae1
commit
5a9c8fe207
|
@ -1,15 +1,18 @@
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib.auth.models import User
|
|
||||||
from django.http import HttpResponse, HttpRequest, HttpResponseRedirect
|
from django.http import HttpResponse, HttpRequest, HttpResponseRedirect
|
||||||
from django.views.decorators.csrf import csrf_exempt
|
from django.views.decorators.csrf import csrf_exempt
|
||||||
from django.test.utils import setup_test_environment
|
from django.test.utils import setup_test_environment
|
||||||
|
|
||||||
|
from regluit.core import models
|
||||||
|
|
||||||
from unittest import TestResult
|
from unittest import TestResult
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
def testExperimental(request):
|
def testExperimental(request):
|
||||||
return HttpResponse("hi there")
|
number_of_works = models.Work.objects.count()
|
||||||
|
return HttpResponse("Number of works {0}".format(number_of_works))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue