Hi all, I'm newbie in Django, and I started to build my own API. I know that there is Piston or Django REST framework, but I want to learn API from scratch. What I want to know is, how to make my HTTP Response (View) is perform authentication before can be accessed, or we can make it have to throw username and password to access the HTTP Response?
My code is very simple, like this one: def test_api_view(request, whatever): # # do things # return HttpResponse(serializers.serialize("json", mydictionary), mimetype='application/json') Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.