title: django - what goes into the form action parameter when view requires a parameter?
body: <p>This is what I have:</p>
  
  <p><code>myview.py</code> with a view that takes a parameter <code>user</code>: </p>
  
  <pre><code>def myview(request, user):
     form = MyForm(request.POST)
     ....
     return render_to_response('template.html',locals(), context_instance=RequestContext(request))
  </code></pre>
  
  <p>The <code>user</code> gets passed through an url.</p>
  
  <p><code>urls.py</code>:</p>
  
  <pre><code>...
  
  urlpatterns += patterns('myview.views',
      (r'^(?P&lt;user&gt;\w+)/', 'myview'),
  )
  
  ...
  </code></pre>
  
  <p>I also have a <code>template.html</code> with a form:</p>
  
  <pre><code>&lt;form name="form" method="post" action="."&gt;
  ...
  &lt;/form&gt;
  </code></pre>
  
  <p>What goes in the the form action parameter if <code>myview</code> function requires a parameter? </p>
  
  <p>Right now I have <code>action="."</code> . The reason I'm asking is because when I fill up the form In (templates.html) and  click the submit button I see absolutely no field values passed from that form. It's almost like I'm passing an empty form when I click the submit button. Any ideas? Thank you! </p>