Can I use HTTP Basic Authentication with Django?

前端 未结 7 2229
借酒劲吻你
借酒劲吻你 2020-12-02 12:36

We have a website running on Apache, access to which has a number of static pages protected via HTTP Basic authentication.

I\'ve written a new part of the site with

7条回答
  •  不思量自难忘°
    2020-12-02 12:53

    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/

提交回复
热议问题