liveBook · Manning

Django Grappelli

As explained in Django in Action

Django Grappelli is a third-party Django package that replaces the default Django administration interface with an alternative user interface.

Django Grappelli is a drop-in replacement for the Django Admin templates. It gives the administration interface a more modern appearance without replacing the underlying admin tool. section 13.3 section 13.3.1

Configure Grappelli in a Django project with these steps:

  • Install it with python -m pip install django-grappelli. section 13.3.1
  • Add "grappelli" to INSTALLED_APPS before "django.contrib.admin". section 13.3.1
  • Register path("grappelli/", include("grappelli.urls")) before the admin routes. section 13.3.1
  • Ensure TEMPLATES/OPTIONS includes django.template.context_processors.request; Django includes it by default. section 13.3.1

A different admin view

After configuration, the Django Admin uses a grid-based layout, turns side panels into drop-down menus, and provides a cleaner header and footer. If using Django before 4.0, choose a Grappelli version compatible with that older Django release. section 13.3.1 section 13.6

How Django in Action covers it

How deep it goes
Explains installation, application ordering, URL registration, and template configuration, but stops short of customization internals.
Examples
Shows a grid layout, drop-down side panels, and cleaner administration header and footer.
What it assumes
Assumes a Django project with the admin enabled and teaches the package installation and integration steps.
What you can do after
Apply it via pip and Django settings to replace the default administration presentation.
How it connects
Connects Django Admin with Django templates, URL routing, installed applications, and template context processors.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Django in Action. The section links point to the parts of the book it draws on.