Skip to main content

Code Lint Python Tests Documentation

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

  1. Install the django-guest-user package

  2. Add guest_user to your INSTALLED_APPS and migrate your database

  3. Add guest_user.backends.GuestBackend to your AUTHENTICATION_BACKENDS

  4. Include guest_user.urls in your URLs

  5. 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-guest-user-0.4.0.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_guest_user-0.4.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file django-guest-user-0.4.0.tar.gz.

File metadata

  • Download URL: django-guest-user-0.4.0.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.10.43.3-microsoft-standard-WSL2

File hashes

Hashes for django-guest-user-0.4.0.tar.gz
Algorithm Hash digest
SHA256 6d7acb91f28f691902a98678963cbd0fde013bd0464d56e9f02097b3dae8d67b
MD5 5032f455380dfbdc9ed3a39b85b3381b
BLAKE2b-256 a93c4267834800742e7344f957cab6727897129bb3bc55694d810ef17b62dea7

See more details on using hashes here.

File details

Details for the file django_guest_user-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: django_guest_user-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.10.43.3-microsoft-standard-WSL2

File hashes

Hashes for django_guest_user-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b93f822e2698ae7c09561972ee300b4974fa4ee540dbde015bc19cbb2a16306c
MD5 f94a7ab1865156b4c4cf1e2715c673b8
BLAKE2b-256 24d81e577adb2d2f250147e272d4df105f2077737668e4ca37528d94544a1237

See more details on using hashes here.

Release history Release notifications | RSS feed

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page