Skip to main content

Front end editing for Django.

Project description



A front end editing app for Django. This app allows one to edit dynamic data on the front end of a website when logged in as a staff member. The app allows the editing of dynamic content within any element (See Example below).


You must have setuptools installed.

From PyPI:

pip install django_front_edit

Or download a package from the PyPI or the BitBucket page:

pip install <package>

Or unpack the package and:

python install.


Django >= 1.4 and its dependencies.

beautifulsoup4 >= 4.3.2 located at: or

django-classy-tags >= 0.5.1 located at: or


In your Django file insert the following in an appropriate place:




In your main file:

url(r'', include('front_edit.urls')),

There is nothing to syncdb or migrate.


This app uses template tags for all its functionality.

Template tags

Make sure to load up front_edit_tags in your template.

Edit…EndEdit > Arguments: object.field…[class_name]

object.field: This argument consist of multiple arguments of dot separated object/field variables. Currently only fields within the same model object can be edited per tag.

class_name: This optional argument is the class name(s) to put on the form, edit button, and overlay in case you need to adjust them.

This tag specifies an editable region.

EditLoader > Arguments: None

This tag includes all the boilerplate to make the front-end editing work. This tag should always be right before the end <body> tag in your base template.


There is one command that you can call if you need to reposition the edit elements. You should call this if any JavaScript will change the offset of in-flow elements.



{% load front_edit_tags %}
<!DOCTYPE html>
        <!-- In a list -->
            {% for object in objects %}
            {% edit object.text_field object.char_field "class_name" %}
                <span>{{ object.text_field }}</span>
                <span>{{ object.char_field }}</span>
            {% endedit %}
            {% endfor %}
        <!-- In a table -->
                    {% for object in objects %}
                    {% edit object.text_field object.char_field "class_name" %}
                        <span>{{ object.text_field }}</span>
                        <span>{{ object.char_field }}</span>
                    {% endedit %}
                    {% endfor %}
        <!-- On a span -->
        {% edit object.text_field "class_name" %}
        <span>{{ object.text_field }}</span>
        {% endedit %{
    {% edit_loader %}




Default: “admin:logout”

Set the name of the logout url.


Default: []

A list of dot-separated paths to a custom model field such as a rich text field or file field that has a Media class on its widget.


Default: True

Option to disable inline editing.



This template is the main boilerplate.


Default: ‘front_edit/includes/toolbar.html’

This template is the admin toolbar.


Default: ‘front_edit/includes/editable.html’

This template is the editable. Which includes the form, edit button, and overlay.

Custom Media and JS variables

If the FRONT_EDIT_CUSTOM_FIELDS setting doesn’t satisfy your needs you will need to do the following.

  1. Change FRONT_EDIT_LOADER_TEMPLATE to your own template, it should have a different name than ‘front_edit/loader.html’.
  2. In your template extend ‘front_edit/loader.html’.
  3. Use the block ‘ft_extra’ to set or run javascript code. No script tags are needed.
  4. Use the block ‘ft_extra_media’ to define media such as CSS or JS files.

Project details

Release history Release notifications

History Node


This version
History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django-front-edit-1.0.tar.gz (7.4 kB) Copy SHA256 hash SHA256 Source None Aug 19, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page