1. Jesper Noehr
  2. django-piston
  3. Issues
Issue #191 new

TypeError with django 1.3/python 2.7.1

jachettoteam
created an issue

django 1.3, python 2.7

TypeError at /django/core/handlers/base.py in get_response, line 111

object.new() takes no parameters {{{

!python

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