Skip to main content

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

https://img.shields.io/travis/wooyek/django-pascal-templates.svg https://img.shields.io/coveralls/wooyek/django-pascal-templates.svg

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-pascal-templates-0.8.8.zip (7.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page