title: What does this error mean: ValueError: renderer was passed non-dictionary as value
body: <p>Right now I have a pyramid (python) app with a home page that is reached via this route in the <strong>init</strong>.py file:</p>
  
  <pre><code> config.add_route('home_page', '/')
  </code></pre>
  
  <p>in my views.py file I have:</p>
  
  <pre><code>@view_config(route_name='home_page', renderer='templates/edit.pt')
  def home_page(request):
      if 'form.submitted' in request.params:
          name= request.params['name']
          body = request.params['body']
          page=Page(name,body)
          DBSession.add(page)
          return HTTPFound(Location=request.route_url('view_page',pagename=name))
  </code></pre>
  
  <p>and in my edit.pt template I have </p>
  
  <pre><code>&lt;form action="${save_url}" method="post"&gt;
      &lt;textarea name="name" tal:content="page.data" rows="10"
                      cols="60"/&gt;&lt;br/&gt;
      &lt;textarea name="body" tal:content="page.name" rows="10"
                      cols="60"/&gt;&lt;br/&gt;
  &lt;input type="submit" name=form.submitted value="Save"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>So basically the goal is to have the homepage show this edit.pt template which contains a form for submitting two pieces of information, a page name and page body. Upon submitting the form, the return HTTPFound function should redirect to the view_page created which shows the page name page body on a new permanent url. </p>
  
  <p>I am not sure what I should add after the if statement in my home_page view_config. If the form hasn't been submitted I don't want anything to happen, it should just continue to show that edit.pt template. Right now I am getting an error when I try to visit the home page: ValueError: renderer was passed non-dictionary as value. </p>