Skip to main content
https://pypip.in/v/mezzanine-page-auth/badge.png

Created by Simone Dalla

Overview

Mezzanine Page Auth is Mezzanine module for add group-level permission to Pages.

Full Documentation at: http://mezzanine_page_auth.readthedocs.org/

Dependencies

Mezzanine Page Auth required:

Installation

The easiest method is to install directly from pypi using pip by running the command below, which will also install the required dependencies mentioned above:

$ pip install mezzanine_page_auth

If you prefer, you can download mezzanine-auth-pages and install it directly from source:

$ python setup.py install

Add mezzanine_page_auth to your INSTALLED_APPS setting before all mezzanine apps:

INSTALLED_APPS = (
    # ...
    'mezzanine_page_auth',
    'mezzanine.boot',
    'mezzanine.conf',
    'mezzanine.core',
    # ...
)

You will then want to create the necessary tables. If you are using South for schema migrations, you’ll want to:

$ python manage.py migrate mezzanine_page_auth

Middleware

Enable PageAuthMiddleware middleware in your settings module as follows:

MIDDLEWARE_CLASSES = (
    # ...
    "mezzanine.core.middleware..."
    "mezzanine.pages.middleware..."
    "mezzanine_page_auth.middleware.PageAuthMiddleware",
    # ...
)

The order of MIDDLEWARE_CLASSES is important. You should include the PageAuthMiddleware middleware after other Mezzanine middlewares in the list.

Template Context Processors

Enable page_auth template context processors in your settings module as follows:

TEMPLATE_CONTEXT_PROCESSORS = (
    # ...
    "mezzanine_page_auth.context_processors.page_auth",
)

The order of MIDDLEWARE_CLASSES is important. You should include the PageAuthMiddleware middleware after other Mezzanine middlewares in the list.

Mezzanine Settings

Configure EXTRA_MODEL_FIELDS Mezzanine setting in your settings module as follows:

EXTRA_MODEL_FIELDS = (
    # ...
    (
        "mezzanine.pages.models.Page.groups",
        "ManyToManyField",
        ("auth.Group",),
        {"blank": True, "null": True, "verbose_name": 'groups',
         'symmetrical': False, 'through': "mezzanine_page_auth.PageAuthGroup"},
    ),
    # ...
)

for inject field groups into Mezzanine’s models (reference to Field Injection Mezzanine documantation).

License

Mezzanine Page Auth is BSD licensed.

Metadata

Release files for mezzanine-page-auth 0.3.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 mezzanine-page-auth 0.3.3
File Size Uploaded Provenance Actions
mezzanine-page-auth-0.3.3.tar.gz 39.3 kB Without provenance Details for mezzanine-page-auth-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mezzanine-page-auth 0.3.3
File Interpreter ABI Platform Actions
mezzanine_page_auth-0.3.3-py2.py3-none-any.whl Python 2, Python 3 none any Details for mezzanine_page_auth-0.3.3-py2.py3-none-any.whl

Total release size: 88.9 kB

Release files / mezzanine-page-auth-0.3.3.tar.gz

Download URL mezzanine-page-auth-0.3.3.tar.gz
Size 39.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0af681bca09c70560e7f6da4b0d69165983e9f76539dbd34316bd38e30f6ac4e
BLAKE2b-256 checksum
How to use checksums
189df550cf058b72d66ef501438203347fa60a05dde08bd90f1406d08eace119
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / mezzanine_page_auth-0.3.3-py2.py3-none-any.whl

Download URL mezzanine_page_auth-0.3.3-py2.py3-none-any.whl
Size 49.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
69f29cb847c73b5994ac8a1a26fccd71f3af784400831fc34bb85ecbb3fa1324
BLAKE2b-256 checksum
How to use checksums
8e36a09512e3272c26cabe938c9be839ef0e289868935071fa8df2521b1c4462
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mezzanine-page-auth 0.3.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.

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