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
]
In effect you can use a nice folder structure with templates that are easy to manage:
templates
├── SomeModel
│ ├── detail.html
│ ├── form.html
│ └── list.html
├── SomeOtherModel
│ ├── detail.html
│ ├── form.html
│ └── list.html
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.10.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | c07c5b7d18813ac34518f0177664f1c77ac78abedfbc29038f7e67abe09bafd1 |
|
MD5 | 8d185b5bb5877d1555cef54dac907d50 |
|
BLAKE2b-256 | 5837e0066059df73d2cccc43187fd9cbf6ca54fa6a5e80e35d255526e8d968eb |