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
.. contents::
=========================
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
=========================
== Depencies ==
Django 1.2 (Tested for that version)
== 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
file:admin/change_list.html
{% extends "admin/change_list.html" %}
{% block extrastyle %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="XXX" />
{% endblock %}
Else:
file:admin/change_list.html
{% 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 and other for Django 1.2.
=========================
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
=========================
== Depencies ==
Django 1.2 (Tested for that version)
== 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
file:admin/change_list.html
{% extends "admin/change_list.html" %}
{% block extrastyle %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="XXX" />
{% endblock %}
Else:
file:admin/change_list.html
{% 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 and other for Django 1.2.
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.5.tar.gz
.
File metadata
- Download URL: django-smart-extends-0.5.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ad5264f964b1195fe242b64673d0b3a040f93a36c0630a1540047a11a06f6b9 |
|
MD5 | eae024ab94a7bc9fe582deeaf214abef |
|
BLAKE2b-256 | 31d5ed339f8eae852ef327889c9768c94f043574c3135519796c796adb146b77 |