django - what goes into the form action parameter when view requires a parameter?
问题 This is what I have: myview.py with a view that takes a parameter user : def myview(request, user): form = MyForm(request.POST) .... return render_to_response('template.html',locals(), context_instance=RequestContext(request)) The user gets passed through an url. urls.py : ... urlpatterns += patterns('myview.views', (r'^(?P<user>\w+)/', 'myview'), ) ... I also have a template.html with a form: <form name="form" method="post" action="."> ... </form> What goes in the the form action parameter