Issue #191 new

TypeError with django 1.3/python 2.7.1

created an issue

django 1.3, python 2.7

TypeError at /django/core/handlers/ in get_response, line 111 takes no parameters {{{


from django.conf.urls.defaults import patterns, include, url

from handlers import ComuniHandler

urlpatterns = patterns('', url(r'^comuni/(?P<slug>[^/]+)/',ComuniHandler,{'emitter_format': 'json'}), )

from piston.handler import BaseHandler from cap.models import Comune

class ComuniHandler(BaseHandler): allowed_methods = ('GET',) model = Comune

def read(self, request, slug): base = Comuni.objects return base.filter(slug=slug)


Comments (0)

  1. Log in to comment