Skip to main content

Utilities for Mezzanine CMS

Project description

Mezzy

Utilities for Mezzanine sites

PyPI version Workflow status

Installation

  1. Install via pip: pip install mezzy
  2. Add to "mezzy" to INSTALLED_APPS (if using the template tags)

Features

Utilities

Found in mezzy.utils

  • admin mixins to create "nested" inline admin experiences
  • forms mixins for more accessible and user-friendly forms
  • models abstract model classes for common inline patterns
  • tests TestCase mixin for class-based and function-based views

Template tags and filters

mezzy_tags provides the following:

  • microtemplate: Filter that parses certain variables in the value param. It can be used to allow some templating capabilities in admin fields. Default template tokens can be found in mezzy.defaults.
  • load_theme: Tag that adds the SiteConfiguration to the context. It also uses the request object as cache to avoid some DB hits.
  • clean: Filter that removes HTML tags and attributes that aren't allowed for Mezzanine by default, even if the user has disabled filtering.

Contributing

Review contribution guidelines at CONTRIBUTING.md.

Project details


Download files

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

Files for mezzy, version 3.0.0
Filename, size File type Python version Upload date Hashes
Filename, size mezzy-3.0.0-py2.py3-none-any.whl (10.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size mezzy-3.0.0.tar.gz (9.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page