Django generic views with PascalCase template paths with model named folders.
Project description
Django generic views with PascalCase template paths with model named folders.
https://github.com/wooyek/django-pascal-templates
Usage
Replace your usual generic view imports with:
from pascal_templates.views import DetailView, CreateView, UpdateView, DeleteView, ListView
And in result get additional template_names allowing you to keep templates in folders named after your models:
names = [
'some_app/somemodel_detail.html',
'some_app/SomeModel/detail.html', # This is what you get
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-pascal-templates-0.8.8.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb219e49e9f637def3a4ce6f3d79f4b823394bbc6d28355b24bffe728aa02ee |
|
MD5 | d1501ad327a64a5beeae614a0cec17d7 |
|
BLAKE2b-256 | ce97b2b0affa101a3a603149572c4202080124881acda7a476ce96dca7741654 |