Django AdminLTE - PyPi Library
Tags: adminlte, django, opensource
Published: 2022-12-10 13:52:44

---
title: Django AdminLTE - PyPi Library
published: true
description: Modern template for Django Admin Interface coded on top of AdminLTE, the iconic dashboard template - Design provided as a PyPi Library.
tags: adminlte, django, opensource
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9hpxixxct9sp14pcx4pm.jpg
canonical_url: https://blog.appseed.us/django-adminlte-free-pypi-library/
---
Hello Coders! 

This article presents [Django AdminLTE](https://github.com/app-generator/django-admin-adminlte), the PyPi integration of this iconic design for **Django**. The latest stable version is provided by AdminLTE maintainers, including Dark Mode, widgets, charts, calendar, and Kanban board. The product can be used in any [Django](https://appseed.us/admin-dashboards/django/) project (new or legacy) that needs a modern design with **AdminLTE** design DNA. Thanks for reading!

- 👉 [Django AdminLTE](https://github.com/app-generator/django-admin-adminlte) - `source code`
- 🚀 Free [support](https://appseed.us/support/) provided by `AppSeed` (just in case)

![Django AdminLTE - Mobile View (open-source PyPi library crafted by AppSeed)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5956zesq76rrp2gnb261.png)

---

## ✨ What's in the box

This library can be installed and used with minimum effort and configuration. Once installed, the design covers the following:

- ✅ `Admin Section` reserved for Django `superusers`
- ✅ All `Django.contrib.AUTH` pages + `Registration`
- ✅ `Pages` for common users: `Dashboard`, `Widgets`, `Forms`

![Django AdminLTE - Dark-Mode Active (open-source PyPi library crafted by AppSeed)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2976jwml0iwwvn5brz7b.png)

---

## ✨ How to use it

As mentioned before, the library can be used in a new Django project or for legacy projects that need a small UI boost in order to look better. In the following section, I will mention the installation steps as listed on the official [PyPi Page](https://pypi.org/project/django-admin-adminlte/).

> 👉 **Step #1** - `Install the library`

```bash
$ pip install django-admin-adminlte
```

---

> 👉 **Step #2** - Update the `INSTALLED_APPS` section of the project

```python
    INSTALLED_APPS = (
        ...
        'admin_adminlte.apps.AdminAdminlteConfig',  # <-- NEW
        'django.contrib.admin',
    )
```

Make sure the `AdminLTE` line is above `django.contrib.admin` in order to overwrite the **Django** defaults.

---

> 👉 **Step #3** - Update project routing to include the theme URLs

```python
    from django.urls import path, include

    urlpatterns = [
        ...
        path('', include('admin_adminlte.urls')),  # <-- NEW
    ]
```

---

> 👉 **Step #4** - Migrate & start the project

```bash
$ # Set up the database
$ python manage.py makemigrations
$ python manage.py migrate
$
$ # Create the superuser
$ python manage.py createsuperuser
$
$ # Start the application (development mode)
$ python manage.py runserver # default port 8000
```

At this point, the AdminLTE styling should cover all sections: authentication, the admin section reserved for superusers, and pages for common users. 

![Django AdminLTE - Sign-IN Page (open-source PyPi library crafted by AppSeed)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ywokwvhkl9tgxv6fx2qx.png)

---

> **Django AdminLTE** - Calendar Page

![Django AdminLTE - Calendar Page (open-source PyPi library crafted by AppSeed)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lnt4zlqt793nmmo7beb9.png)

---

## ✨ AdminLTE Playground project

For those without much time or patience to manually configure the project, a playground app is also available with all the above steps already crafted.

> 👉 [Django AdminLTE Playground](https://github.com/app-generator/django-admin-adminlte_p) - `sources` saved on GitHub    

![Django AdminLTE - Widgets page (open-source PyPi library crafted by AppSeed)](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/82pnbm0lg5z1sccincmf.png)

---

> `Thanks for reading!` For more resources and support, please access:

- 🚀 Free [support](https://appseed.us/support/) provided by AppSeed (email & Discord)
- 👉 More [free apps](https://appseed.us/apps/open-source/) crafted in Flask, Django, and [React](https://appseed.us/apps/react/)