Skip to main content

django-pascal-templates

Django generic views with PascalCase template paths with model named folders.

https://github.com/wooyek/django-pascal-templates

https://img.shields.io/travis/wooyek/django-pascal-templates.svg https://img.shields.io/coveralls/wooyek/django-pascal-templates.svg https://img.shields.io/pypi/v/django-pascal-templates.svg?maxAge=2592000 https://img.shields.io/pypi/dm/django-pascal-templates.svg?maxAge=2592000

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

Metadata

Release files for django-pascal-templates 0.8.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-pascal-templates 0.8.13
File Size Uploaded Provenance
django-pascal-templates-0.8.13.tar.gz 4.0 kB Without provenance Details

Release files / django-pascal-templates-0.8.13.tar.gz

Download URL django-pascal-templates-0.8.13.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b27322a01c3861ae7bb10ae6f43078126dadfadf04a1c25923df0125f557d518
BLAKE2b-256 checksum
How to use checksums
558d8e4a258f142630b5162bf57caf6254248a27f0cc014b532f1cbbea50506a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-pascal-templates 0.8.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page