title: Why do I get TypeError: get() takes exactly 2 arguments (1 given)? Google App Engine
body: <p>I have been trying and trying for several hours now and there must be an easy way to retreive the url. I thought this was the way:</p>
  
  <pre><code>#from data.models import Program
  
  import basehandler
  
  class ProgramViewHandler(basehandler.BaseHandler):
      def get(self,slug):
  #        query = Program.all()
  #        query.filter('slug =', fslug)
          self.render_template('../presentation/program.html',{})
  </code></pre>
  
  <p>Whenever this code gets executed I get this error on the stacktrace:</p>
  
  <p>appengine\ext\webapp__init__.py", line 511, in <strong>call</strong>
      handler.get(*groups)
  TypeError: get() takes exactly 2 arguments (1 given)</p>
  
  <p>I have done some debugging, but this kind of debugging exceeds my level of debugging. When I remove the slug from def get(self,slug) everything runs fine.</p>
  
  <p>This is the basehandler:</p>
  
  <pre><code>import os
  
  from google.appengine.ext import webapp
  from google.appengine.ext.webapp import template
  
  
  
  class BaseHandler(webapp.RequestHandler):
      def __init__(self,**kw):
          webapp.RequestHandler.__init__(BaseHandler, **kw)
  
      def render_template(self, template_file, data=None, **kw):
          path = os.path.join(os.path.dirname(__file__), template_file)
          self.response.out.write(template.render(path, data))
  </code></pre>
  
  <p>If somebody could point me in the right direction it would be great! Thank you! It's the first time for me to use stackoverflow to post a question, normally I only read it to fix the problems I have.</p>