Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unplugstudio/mezzy
Utilities for Mezzanine CMS
https://github.com/unplugstudio/mezzy
django mezzanine utility
Last synced: about 2 months ago
JSON representation
Utilities for Mezzanine CMS
- Host: GitHub
- URL: https://github.com/unplugstudio/mezzy
- Owner: unplugstudio
- License: mit
- Created: 2020-04-22T14:35:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-12T19:37:15.000Z (11 months ago)
- Last Synced: 2024-11-14T12:56:39.738Z (about 2 months ago)
- Topics: django, mezzanine, utility
- Language: Python
- Size: 49.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Mezzy
Utilities for [Mezzanine](http://mezzanine.jupo.org/) sites
[![PyPI version](https://badge.fury.io/py/mezzy.svg)](https://badge.fury.io/py/mezzy)
![Workflow status](https://github.com/unplugstudio/mezzy/workflows/Test%20and%20release/badge.svg)## Installation
1. Install via pip: `pip install mezzy`
1. 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].
[CONTRIBUTING.md]: CONTRIBUTING.md