Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Django JumpToAdmin

Django JumpToAdmin is a library that offers administrators easy access to the Django admin interface for any object from the public-facing interface.

(See UI screencast and an overview at, and screenshots at

A Django template tag outputs class names to the template. A Javascript file parses the rendered template in the browser for these classes and adds links to Change or Delete any object.

Links will also be rendered to perform any "Admin actions" specified in your files.

When clicked, these links load the Django admin pages in an iframe above the current page for easy access.

These links only appear for logged in users with admin permissions on each specified object.

Django JumpToAdmin is very immature software. If you have ideas for other capabilities please fork this project give them a try.


  • Django JumpToAdmin is developed against Django trunk, but should work on Django 1.0 and newer.
  • Django JumpToAdmin requires jQuery be loaded from templates to display any links


  1. Add the following package to your Python path:

  2. Add the following to the INSTALLED_APPS list in your file:

  3. Add the following to the TEMPLATE_CONTEXT_PROCESSORS list in your file to add a {{ JUMPTOADMIN_MEDIA_URL }} variable to the context of each template:

  4. (Optionally) At the command line, create a symbolic link from your project's media folder to the media folder inside the jumptoadmin package:

    ln -s /path/to/your/media/jumptoadmin/ /path/to/django-jumptoadmin/jumptoadmin/media/jumptoadmin/
  5. (Optionally) Specify an JUMPTOADMIN_MEDIA_URL variable in your file. If not specified, JUMPTOADMIN_MEDIA_URL will default to your MEDIA_URL value + 'jumptoadmin/':

    JUMPTOADMIN_MEDIA_URL = '/URL/to/your/media/jumptoadmin/'
  6. In your base.html template (or any specific template you'd like) add the following inside the HTML <head> to bring in the Javascript and CSS needed to show JumpToAdmin links:

    {% if user.is_staff %}<script type="text/javascript" src="{{ JUMPTOADMIN_MEDIA_URL }}jumptoadmin.js"></script>{% endif %}
    {% if user.is_staff %}<link href="{{ JUMPTOADMIN_MEDIA_URL }}jumptoadmin.css" rel="stylesheet" type="text/css" />{% endif %}
  7. In your base.html template (or any specific template you'd like) add the following just before the </body> to insert a global Javascript variable named 'jumpFlagList' that contains all the information needed to render links for each item:

    {% render_jumptoadmin_flags %}
  8. In any template that contains objects for which you'd like JumpToAdmin, load the "jumptoadmin" templatetag library then pass the desired object to the "jumptoadmin_flag" tag inside an HTML class:

    {% load jumptoadmin %}
    <div id="objectid" class="{% jumptoadmin_flag objectvarhere %}">...</div>
    {% for comment in comments %}
            <div id="c{{ }}" class="comment {% jumptoadmin_flag comment %}">
    {% endfor %}


  • Django JumpToAdmin is designed and developed by Ryan Berg
  • Django JumpToAdmin uses Thickbox Javascript adapted from ThickBox 3.1


Django templatetag for admins to easily change/delete objects from the public-facing site.







No releases published


No packages published