[Answer]-Django URLs: How to handle a parameter

1👍

One way is to redesign it a bit, like this:

url(r'^mypage/(?P<q_id>\d+)/$', generate_form_tuples, name='nickname'),

...

def generate_form_tuples(request, q_id=1):
    ...
    return QuizWizard.as_view(...)(request, q_id=q_id)
👤alecxe

Leave a comment