A Django app that lets visitors interact with your site without registration.
Project description
django-guest-user
A Django app that allows visitors to interact with your site as a guest user without requiring registration.
Largely inspired by django-lazysignup and rewritten for Django 3.1+ and Python 3.7+.
Find the complete documentation on Read the Docs.
Quickstart
-
Install the
django-guest-user
package -
Add
guest_user
to yourINSTALLED_APPS
and migrate your database -
Add
guest_user.backends.GuestBackend
to yourAUTHENTICATION_BACKENDS
-
Include
guest_user.urls
in your URLs -
Decorate your views with
@allow_guest_user
:from guest_user.decorators import allow_guest_user @allow_guest_user def my_view(request): assert request.user.is_authenticated return render(request, "my_view.html")
Status
This project is still under development. But thanks to previous work it is largely functional.
I decided to rewrite the project since the original project hasn't seen any larger updates for a few years now. The initial code base was written a long time ago as well.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_guest_user-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b93f822e2698ae7c09561972ee300b4974fa4ee540dbde015bc19cbb2a16306c |
|
MD5 | f94a7ab1865156b4c4cf1e2715c673b8 |
|
BLAKE2b-256 | 24d81e577adb2d2f250147e272d4df105f2077737668e4ca37528d94544a1237 |