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.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbccf916d60353348bd9948bb5f54ae2dd7bac70272e4ecca277ca5c3824c339 |
|
MD5 | 2ec5c5b1898a5475204ea157ec530998 |
|
BLAKE2b-256 | 4633e63234cb5f0a8a475191940a7414f106f9e490cc1118bd18430d67c74861 |