Simple experimental view

pull/1/head
Raymond Yee 2012-03-02 09:31:13 -08:00
parent f4e2960ae1
commit 5a9c8fe207
1 changed files with 5 additions and 2 deletions

View File

@ -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))