[Answer]-Django, creating a view with a link

1👍

✅

You have the code then pass into url like

url(r'^link/?code=(?P<id>\d+)/$', 'save_link', name='save_link'),

then in your view

def save_link(request, id):
    pprint.pprint(id) # To check weather id's here or not!
    return HttpResponse('id 's here )

Leave a comment