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.6.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7ff3c6a2b5fb1890ede1145f62280712629e60f2a99b5eee531caed32a589c6 |
|
MD5 | 905c0739576330c78f907d86207f71c4 |
|
BLAKE2b-256 | 11e5c3b59f3a933ef6edc6fd735886240842a7cb3ac14ad8571e1e0ae451afff |