Django generic views with PascalCase template paths with model named folders.
Project description
Django generic views with PascalCase template paths with model named folders.
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.5.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec2e2144ecf2b84416277ca76c86f5771d7527a5b5010dde7a1460417f21de4f |
|
MD5 | f679576e09a680569c74945a26ddf523 |
|
BLAKE2b-256 | 5ae5ad0e3cda78c3bcb31de65600c10c09f7a06e30bb591d08f98eee69d61cd3 |