| password_required | ||
| .gitignore | ||
| LICENSE | ||
| README.mkd | ||
Django Password Required
A reusable Django app for requiring a password to access some pages on a site, without requiring users to register an account.
This is a very simple method of authentication, and is intended to provide a low barrier of entry to a site that is not completely public.
Use cases could be previews of sites that users are not supposed to log in to, Stack Overflow-style beta tests, etc.
Using the @password_required decorator, you can password-protect
individual views.
This module is based on simple session variables, and thus interoperable
with django.contrib.auth, allowing you to optionally bypass password
protection for all authenticated users, or only for certain groups.
Usage
Set PASSWORD_REQUIRED_PASSWORD to the preferred password in APIClone's local settings file.
PASSWORD_REQUIRED_PASSWORD = 'mysecretpassword'
Requirements
Probably Django ~3.0 and higher, though APIClone only works with ~4.2+
License
This app is BSD-licensed, just like Django.