Basic Concepts¶
After the tutorial, start through these topics to learn about DMP:
settings.py
- 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
TemplateResponse
- Customizing
@view_function
- Rendering Partial Templates for Ajax
- Combining Django and Mako Templates
- Signals in DMP
- Internationalization
The following are further destinations to learn Mako and Django:
- Go through the Mako Templates documentation. It will explain all the constructs you can use in your html templates.
- Read or reread the Django Tutorial. Just remember as you see the tutorial’s Django template code (usually surrounded by
{{ }}
) that you’ll be using Mako syntax instead (${ }
). - Link to this project in your blog or online comments. I’d love to see the Django people come around to the idea that Python isn’t evil inside templates. Complex Python might be evil, but Python itself is just a tool within templates.