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:
More Related Contents:
- Proper way to handle multiple forms on one page in Django
- How to use permission_required decorators on django class-based views
- Django: Get list of model fields?
- How do I get Django Admin to delete files when I remove an object from the database/model?
- Applying bootstrap styles to django forms
- Using a UUID as a primary key in Django models (generic relations impact)
- Django ManyToMany filter()
- How do I deal with this race condition in django?
- Should I avoid multi-table (concrete) inheritance in Django by any means?
- Limit foreign key choices in select in an inline form in admin
- How do I insert a django form in twitter-bootstrap modal window?
- Django get the static files URL in view
- Confusion in Django admin, static and media files
- how to unit test file upload in django
- What’s the cleanest, simplest-to-get running datepicker in Django?
- Django multi-select widget?
- Using Heroku for Django Media Files
- Where can I find the error logs of nginx, using FastCGI and Django?
- Django’s self.client.login(…) does not work in unit tests
- Django “xxxxxx Object” display customization in admin action sidebar
- How to install libpq-fe.h?
- Using Django auth UserAdmin for a custom user model
- List field in model?
- django.db.utils.IntegrityError: UNIQUE constraint failed: rango_category__new.slug
- Django class based view ListView with form
- Django – limiting query results
- Get user information in django templates
- Having trouble with user.is_authenticated in django template
- How to render form field with information that it is required
- Forbidden (403) CSRF verification failed. Request aborted