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.
  • Color classes for every AdminLTE color on every element.
  • Dark mode, which follows the browser's light or dark setting by default.
  • Three access policies: loose (the Django default), login required, and strict (every view needs permissions), with decorators and mixins for each view.
  • 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.1

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.1
File Size Uploaded Provenance Actions
django_adminlte2_pdq-0.3.1.tar.gz 9.3 MB With provenance Details for django_adminlte2_pdq-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 19.2 MB

Release files / django_adminlte2_pdq-0.3.1.tar.gz

Download URL django_adminlte2_pdq-0.3.1.tar.gz
Size 9.3 MB
Tags Source
SHA-256 checksum
How to use checksums
0dc7520272f1e2b0175b9071cbb9d73beeef828c0b26db8e8905533963c5124a
BLAKE2b-256 checksum
How to use checksums
5e0c3d10ffecd519cd92c7ec6fa7242404e26d0aa9f1b018dcc4a9e4ac52fcf6
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 26, 2026.

Transparency log

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

Download URL django_adminlte2_pdq-0.3.1-py3-none-any.whl
Size 9.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7f7faf8b48306797348a25a62b993a2b29b878b63daaa7385b07b0071eddf959
BLAKE2b-256 checksum
How to use checksums
660bb3ea037845171c748c568d0a6ec529ace1b7825bfc8a73f45f734288f4c2
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 26, 2026.

Transparency log

Security for django-adminlte2-pdq 0.3.1

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.1.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 26, 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