Skip to main content

Django-AdminLTE2-PDQ

PyPI Python Versions Django Versions Black Run Tests Coverage Status Documentation Status GitHub PyPI Downloads per Month

Django-AdminLTE2-PDQ is a Django app that takes all of the work out of making a beautiful and functional web application pretty darn quickly (PDQ) using the AdminLTE2 theme.

Additionally, the app provides decorators, mixins, template filters, and template tags to aid in the rapid development of a site.

Features include:

  • Styled with AdminLTE2.
  • Easy sidebar menu creation.
  • Automatic Django Admin styling that matches AdminLTE2.
  • Automatic inclusion of Admin links in the sidebar.
  • Automatic menu link hiding based on user permissions to views.
  • Template filters to aid in manual styling.
  • Template tags for form rendering that matches AdminLTE2.
  • Automatic form error and message styling.
  • Font Awesome 4 & Font Awesome 5 integration.
  • Highly configurable functionality, via project Django settings variables.

The full documentation can be found on Read The Docs.

django-adminlte2-pdq-static-menu

Quickstart

  1. Install the Django package via pip.

    python -m pip install django-adminlte2-pdq
    
  2. Add "adminlte2_pdq" to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        'adminlte2_pdq',
        ...
    ]
    

    ℹ️ NOTE The adminlte2_pdq app should be listed before any Django apps so that template overriding works correctly.


  3. Django-AdminLTE2-PDQ provides a middleware that is required for some of the available authentication and authorization scenarios from this package to function.

    Add this middleware to your middleware list in <PROJECT_FOLDER>/settings.py, after Django's session, authentication, and message middleware.

       MIDDLEWARE = [
           ...
           'django.contrib.sessions.middleware.SessionMiddleware',
           ...
           'django.contrib.auth.middleware.AuthenticationMiddleware',
           'django.contrib.messages.middleware.MessageMiddleware',
           ...
           'adminlte2_pdq.middleware.AuthMiddleware',
       ]
    
  4. Django-AdminLTE2-PDQ provides routes and templates for a default home page, some sample pages, and Django's account pages. You should add these default routes to your root URLconf in <PROJECT_FOLDER>/urls.py

    from django.contrib import admin
    from django.urls import include, path
    
    urlpatterns = [
        # Adminlte2 default routes for demo purposes
        path('', include('adminlte2_pdq.urls')),
        # Django Account Routes - Styled in AdminLTE2
        path('accounts/', include('django.contrib.auth.urls')),
        # Admin - Styled in Django but hosted in AdminLTE2 layout
        path('admin/', admin.site.urls),
    ]
    
  5. Ensure that successful logins redirect to a valid endpoint.

    Django-AdminLTE2-PDQ does not include a route or templates for /accounts/profile/ which is the default Django Login redirect. Adding the entry below to your settings.py file will allow successful logins to redirect to the default provided home page included in step 4.

    LOGIN_REDIRECT_URL = 'adminlte2_pdq:home'
    
  6. The package should now have the required bare minimum setup complete. You should be able to run the server and see the default pages located at: http://localhost:8000

    For a more detailed setup, consider reading the Longstart and the rest of the full documentation on Read The Docs.

Metadata

Release files for django-adminlte2-pdq 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-adminlte2-pdq 0.3.0
File Size Uploaded Provenance Actions
django_adminlte2_pdq-0.3.0.tar.gz 9.3 MB With provenance Details for django_adminlte2_pdq-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-adminlte2-pdq 0.3.0
File Interpreter ABI Platform Actions
django_adminlte2_pdq-0.3.0-py3-none-any.whl Python 3 none any Details for django_adminlte2_pdq-0.3.0-py3-none-any.whl

Total release size: 19.2 MB

Release files / django_adminlte2_pdq-0.3.0.tar.gz

Download URL django_adminlte2_pdq-0.3.0.tar.gz
Size 9.3 MB
Tags Source
SHA-256 checksum
How to use checksums
340d29a84aad52851e45aa76edfa485a1e1af01df8792315e1a4c46d1caa7a77
BLAKE2b-256 checksum
How to use checksums
e9f0517b3b98f522b2b9ed57c5efe463e18936b80fd474e31044faca6711df43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / django_adminlte2_pdq-0.3.0-py3-none-any.whl

Download URL django_adminlte2_pdq-0.3.0-py3-none-any.whl
Size 9.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ebb18d52f8b3fa774e163704fa0d9324cd0e9caf50564a9a3522dbe796b08364
BLAKE2b-256 checksum
How to use checksums
097ea65ea7377a376b2caead77d850338e1325447609c5d73cca91ade8c274f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for django-adminlte2-pdq 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_adminlte2_pdq-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page