Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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
Release History

Release History

This version
History Node

0.8.10

History Node

0.8.9

History Node

0.8.8

History Node

0.8.6

History Node

0.8.5

History Node

0.8.4

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-pascal-templates-0.8.10.zip (8.2 kB) Copy SHA256 Checksum SHA256 Source Oct 17, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting