This is what I have:
myview.py with a view that takes a parameter user:
def myview(request, user):
form = MyForm(reques
It should not require anything. Assuming you are at the following url:
www.yoursite.com/users/johnsmith/
Your form should be:
At this point, you are already in myview with user johnsmith. Your view should look like the following:
if request.method == 'POST':
form = MyForm(request.POST)
if form.is_valid():
# you should be able to extract inputs from the form here
else:
form = MyForm()