For just supporting basic auth on some requests (and not mucking with the web server — which is how someone might interpret your question title), you will want to look here:
http://www.djangosnippets.org/snippets/243/
For just supporting basic auth on some requests (and not mucking with the web server — which is how someone might interpret your question title), you will want to look here:
http://www.djangosnippets.org/snippets/243/