django-apptemplates

Software Screenshot:
django-apptemplates
Software Details:
Version: 0.0.1
Upload Date: 20 Feb 15
Developer: Tomas Zulberti
Distribution Type: Freeware
Downloads: 4

Rating: nan/5 (Total Votes: 0)

djang-apptemplates is a Django template loader app that allows you to load a template from a specific application. This allows you to both extend and override a template at the same time. The default Django loaders require you to copy the entire template you want to override, even if you only want to override one small block.

Template usage example (extend and override Django admin base template):

{% extends "admin:admin/base.html" %}

Settings:

TEMPLATE_LOADERS = (
 'django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader',
 'apptemplates.Loader',
)


Based on: http://djangosnippets.org/snippets/1376/

Requirements:

  • Python
  • Django

Other Software of Developer Tomas Zulberti

pywebuml
pywebuml

11 May 15

Comments to django-apptemplates

Comments not found
Add Comment
Turn on images!