All Posts Create a Post  
0
votes
281
views
Understanding Google reCAPTCHA in Django
Posted at 1 year, 3 months ago / Oct. 11, 2020, 8:04 a.m.

Understanding Google reCAPTCHA in Django. I found this awesome answer to simply understand how to use API from Google reCAPTCHA. import urllib, urllib2 def recaptcha(request, postdata): rc_challenge = postdata.get('recaptcha_challenge_field', '') …

146 7 7 0
0
votes
662
views
Understanding @user_passes_test Django
Posted at 1 year, 3 months ago / Oct. 11, 2020, 8:04 a.m.

Django decorator has a function to manage the user, once of it is user_passes_test. But, in my implementation i found this problem: ERR_TOO_MANY_REDIRECTS, or ‘AnonymousUser’ object is not iterable. I …

146 7 7 0