Skip to main content

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

Depencies

Django 1.2 - 1.3 (Tested for those versions)

Django 1.1 - 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

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, other for Django 1.2 and other for Django 1.3.

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-smart-extends-0.5.1.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file django-smart-extends-0.5.1.tar.gz.

File metadata

File hashes

Hashes for django-smart-extends-0.5.1.tar.gz
Algorithm Hash digest
SHA256 974d99752b19ee606a56043f170dd67234d73b110fff989344b55783dfdde638
MD5 f01236fb8b95ac5a247a662571e98b52
BLAKE2b-256 5c7db392de50dcb56bc51dc643f9722b60a07546dc0d196545ac0c51d761a35f

See more details on using hashes here.

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