This application is useful when you want to overwrite a template of a application in your project. Currently this in Django produce infinite recursion
Project description
Smart extends
Smart extends is a Django application that allows improve
It is distributed under the terms of the license write in the same directory, in the file LICENCE
Dependencies
For trunk code you will need Django 1.4
There are specific branches for Django 1.2.X, 1.3.X and 1.1.X (There were two branches to those versions)
How to install
In your settings.py
INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', ... 'smartextends', ) and if you want:
OVERWRITE_EXTENDS = True
How to use
This application is useful when you want to overwrite a template of a application in your project. Currently this in Django produce infinite recursion
If you don’t set OVERWRITE_EXTENDS = True
{% extends "admin/change_list.html" %} {% block extrastyle %} {{ block.super }} <link rel="stylesheet" type="text/css" href="XXX" /> {% endblock %}
Else:
{% smart_extends "admin/change_list.html" %} {% block extrastyle %} {{ block.super }} <link rel="stylesheet" type="text/css" href="XXX" /> {% endblock %}
Patches
If you set TEMPLATE_DEBUG = True in settings.py you must patch django code. You can find the patch in the patches directoy. There are one patch for Django 1.1.X version, other for Django 1.2 and other for Django 1.3. and Django 1.4
0.6
Compatible with Django 1.4 (need Django patches when DEBUG_TEMPLATE is False)
0.5.1
Compatible with Django 1.2 and Django 1.3 (need Django patches when DEBUG_TEMPLATE is False)
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
File details
Details for the file django-smart-extends-0.6.tar.gz
.
File metadata
- Download URL: django-smart-extends-0.6.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a04884444d1b1995129ba026fe64116cd062955781d38c04108257aeb101be09 |
|
MD5 | ee845e99cde20f18b9b1f28c83e9b2b5 |
|
BLAKE2b-256 | 9d8fb360df423c350bf5d563f3625a3c13ac9aadbd38bf604ffd84d2d034486e |