Hi, have GET request :
https://mydomain/auth/complete/instagram/?code=mycode
And i want to get parameter 'code'
path('auth/complete/instagram/', views.instagram, name='auth')
def instagram(request):
code = request.GET.get('code')
if code:
return HttpResponse(code)
return HttpResponse(request.get_full_path())
#Always return /auth/complete/instagram/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/79d00d10-cac0-4825-81f6-18d01f482458%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.