Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

This Django application is port the AdminLTE Template for easy integration into Django Framework

Project Description


This Django application is port the `AdminLTE Template <>`_ for easy integration into Django Framework

Quick start

1. Add "bootstrap3" and "adminlte_full" to your INSTALLED_APPS setting like this::


2. Include the panels URLconf in your project like this::

url(r'^<url_url>/', include('adminlte_full.urls')),

Building an HTML menu

This application offers these elements to ease the construction of the HTML markup expected by AdminLTE to render the sidebar menu:

* A `template tag <adminlte_full/templatetags/>`_ named *show_menu*, which is already used by the `base-layout.html template file <adminlte_full/templates/adminlte_full/base-layout.html>`_ so you have to do nothing to render the menu!
* A `couple of classes <adminlte_full/>`_: MenuItem and Menu, which handle the inner data structure of the menu hierarchy and are agnostic and neutral about how you decide which items, links and parent-child relationships will be in the final menu
* A `Django Signal <>`_ available for you to get a chance to add MenuItem instances to the Menu object created by the *show_menu* tag

A simple real example would be involve some files, like the following ones.

* The URLs patterns file::

from django.conf.urls import url
from my_app.views import my_view_1, my_view_2, my_view_3
urlpatterns = [
url(r'^$', my_view_1, name='index'),
url(r'^$', my_view_2, name='view_2'),
url(r'^$', my_view_3, name='view_3'),

* The views file::

from import MenuItem, Menu
from django.shortcuts import render

def my_view_1(request):
return render(request, 'my_app/template_1.html')

def my_view_2(request):
return render(request, 'my_app/template_2.html')

def my_view_3(request):
return render(request, 'my_app/template_3.html')

def my_menuitems_builder(sender, **kwargs):
# sender is an instance of Menu class
single_menuitem_1 = MenuItem(1, 'Index', 'index')
parent_menuitem_2 = MenuItem(2, 'Parent Menu', '#')
single_menuitem_3 = MenuItem(3, 'Index', 'view_2')
single_menuitem_4 = MenuItem(4, 'Index', 'view_3')


* The template file::

{# templates/my_app/template_1.html #}
{% extends "adminlte_full/base-layout.html" %}

{% block page_title %}Title One{% endblock %}

{% block page_content %}
<h1>My header one</h1>
<p>My content one</p>
{% endblock %}

Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(6.4 MB) Copy SHA256 Hash SHA256
Source Jun 19, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting