Routing Django to Mako since 2013
DMP adds convention-over-configuration to Django:
- Uses standard Python in templates; no more weak-sauce Django templating.
- Calls view functions by convention instead of listing every. single. page. in urls.py.
- Converts parameters in the URL and loads model objects by convention.
- Supports bundling of static files with tools like Webpack.
- Automatically links .js and .css in your HTML documents (if not using bundlers).
- Provides Django-style signals.
- Plays nicely with third party apps.
- Extends Django’s redirecting with exception-based redirecting.
- Supports language translations, class-based views, and collection of static files.
- Includes a comprehensive test suite.
DMP doesn’t replace Django; it extends Django to make you more productive.
- Comparison with Django
- Upgrade Notes
- Basic Concepts
- Escaping Special Characters
- Metadata about the Request
- Python Imports in Templates
- Using Third-Party Apps
- Inheritance Paths and Template Location
- Convenience Functions
- Redirecting the Browser
- CSRF Tokens
- Class-Based Views
- Using the Django API
- Lazy Rendering with
- Rendering Partial Templates for Ajax
- Combining Django and Mako Templates
- Signals in DMP
- Parameter Conversion
- Static Files
DMP requires Python 3.4+ and Django 1.9+.
The first Django 2.0+ release was in December 2017.