Skip to main content

Django Global Login Required Middleware Doc_Badge

Django Global Login Required Middleware (django-glrm) is a Django middleware that make all views and URLs login required.

It’s common in Django that most of the site’s pages are protected, with just a few exceptions of pages that remain public (e.g. login page, etc.). It can be quite tedious to decorate all of the views with @login_required, and it can be easy to forget to decorate some of them.

So, you can use Django Global Login Required Middleware to make all page login required excep some of them.

Documentation is avalible at Read The Docs.

Quick start

  1. Install Django Global Login Required Middleware:

    $ pip install django-glrm
  2. Add “global_login_required.GlobalLoginRequiredMiddleware” to your MIDDLEWARE setting like this:

    MIDDLEWARE = [
        ...
        'global_login_required.GlobalLoginRequiredMiddleware',
    ]

3. Start the development server and visit http://127.0.0.1:8000/, now all your pages are login required and you will see the login page.

Metadata

Release files for django-glrm 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-glrm 1.1.3
File Size Uploaded Provenance Actions
django-glrm-1.1.3.tar.gz 13.4 kB Without provenance Details for django-glrm-1.1.3.tar.gz

Release files / django-glrm-1.1.3.tar.gz

Download URL django-glrm-1.1.3.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e35831a74d0248a8eb4d5f9d5821d556c28c68cd6de9afc0527ea073c58a8bc5
BLAKE2b-256 checksum
How to use checksums
53013864e91c4a45d8393ca11061588fb755c351cc9510f3a4bd07ca304d4c77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-glrm 1.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page