Django后台

django-adminlte2-templates — Django 后台模板

作者 josemarimanio

django-adminlte2-templates 是一个 Django 模板包,用于把 AdminLTE 2 集成到 Django 项目中,并可选提供基于 AdminLTE 的 Django Admin 主题。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

2 个预览视图
桌面端首页1 / 2
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 2

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-15查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

提供用于在 Django 项目中集成 AdminLTE 2 的模板

02

包含可选的、基于 AdminLTE 的 Django Admin 主题 adminlte2_admin

03

通过 pip 安装,并将 adminlte2_templates 加入 INSTALLED_APPS

04

需要把 adminlte2_templates.context_processors.template 加入模板 context_processors

05

随包提供 AdminLTE 2.4.18、Bootstrap 3.4.1、DataTables 1.10.21、Font Awesome 4.7.0、jQuery 3.5.1、Select2 4.0.13 等静态文件

06

模块内附带示例项目 example_project 供参考

模板详细介绍

django-adminlte2-templates 提供模板,帮助把 AdminLTE 2 集成到 Django 项目里;包内还包含一个可选的、基于 AdminLTE 的 Django Admin 主题。README 说明该模块假设使用者已经具备 AdminLTE 2 的使用经验,并建议参考 AdminLTE 2 官方文档。安装方式为通过 pip 安装 django-adminlte2-templates,然后把 adminlte2_templates 加入 INSTALLED_APPS,可选加入 adminlte2_admin 作为 Django Admin 主题,并把 adminlte2_templates.context_processors.template 加入模板 context_processors。包内开箱即用地提供若干客户端库的静态文件,包括 AdminLTE 2.4.18、Bootstrap 3.4.1、DataTables 1.10.21、Font Awesome 4.7.0、HTML5Shiv 3.7.3、jQuery 3.5.1、Respond.js 1.4.2 和 Select2 4.0.13。README 还提到模块内附带一个示例 Django 项目 example_project,并指向在线文档的 Quickstart 章节;关于模板标签、页面布局能力或自定义方式等细节,README 未提供说明,需查阅其文档。

Django后台

适合你的项目吗?

适用场景

  • 在 Django 项目中引入 AdminLTE 2 的页面模板
  • 为 Django Admin 启用基于 AdminLTE 的可选主题
  • 参考包内 example_project 了解集成方式
  • 使用随包提供的 AdminLTE 2、Bootstrap、jQuery 等静态资源

适合人群

  • 已有 AdminLTE 2 使用经验并希望在 Django 中复用的开发者
  • 需要为 Django 项目接入 AdminLTE 2 模板的团队
  • 希望尝试基于 AdminLTE 的 Django Admin 主题的项目
  • 使用 README 所列 Python 与 Django 版本范围的项目

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    使用 pip install django-adminlte2-templates 安装

  2. 2

    在 INSTALLED_APPS 中加入 adminlte2_templates;如需 Admin 主题再加入 adminlte2_admin

  3. 3

    在 TEMPLATES 的 OPTIONS.context_processors 中加入 adminlte2_templates.context_processors.template

  4. 4

    README 建议参考在线文档的 Quickstart 章节和包内 example_project 了解用法

  5. 5

    README 未提供除 pip 安装与上述配置外的其他部署步骤说明

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
  • 使用该模块前需具备 AdminLTE 2 的使用经验,README 建议先参考 AdminLTE 2 官方文档。
  • 运行环境要求 Python 2.7、3.4、3.5、3.6、3.7 或 3.8。
  • 运行环境要求 Django 1.11、2.0、2.1、2.2、3.0 或 3.1。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

This Django module assumes that you have prior experience with AdminLTE 2.

README 原文

- Python (2.7, 3.4, 3.5, 3.6, 3.7, 3.8)

README 原文

- Django (1.11, 2.0, 2.1, 2.2, 3.0, 3.1)

README 原文
https://github.com/josemarimanio/django-adminlte2-templates/blob/master/LICENSEhttps://github.com/josemarimanio/django-adminlte2-templates/blob/master/README.rst

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-15。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
GitHub
资料与维护参考分
资料一般 · 68 / 100
技术栈
Django
网站类型
后台
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2021-09-22
截图检查日期
2026-10-15

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Django。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: codex-user-requested-batch-review-20261015 · 2026-10-15

查看当时使用的来源资料

SHA-256: 04ebb7e2a23b0ea24a47267b5e66c9f5079eab3768dd7bdf8b2400083a68ca8a

2026-10-15T01:48:28.663Z

来源文件 / 仓库
.. image:: https://img.shields.io/pypi/v/django-adminlte2-templates
    :alt: PyPi
    :target: https://pypi.org/project/django-adminlte2-templates

.. image:: https://travis-ci.com/josemarimanio/django-adminlte2-templates.svg?branch=master
    :alt: Travis CI
    :target: https://travis-ci.com/josemarimanio/django-adminlte2-templates

.. image:: https://readthedocs.org/projects/django-adminlte2-templates/badge/?version=latest
    :alt: Documentation
    :target: https://django-adminlte2-templates.readthedocs.io/en/latest

.. image:: https://img.shields.io/codefactor/grade/github/josemarimanio/django-adminlte2-templates/master
    :alt: CodeFactor Grade
    :target: https://www.codefactor.io/repository/github/josemarimanio/django-adminlte2-templates

.. image:: https://img.shields.io/codecov/c/github/josemarimanio/django-adminlte2-templates
    :alt: Codecov
    :target: https://codecov.io/gh/josemarimanio/django-adminlte2-templates

.. image:: https://img.shields.io/github/license/josemarimanio/django-adminlte2-templates
    :alt: License - MIT
    :target: https://github.com/josemarimanio/django-adminlte2-templates/blob/master/LICENSE


AdminLTE 2 templates for Django
===============================

**django-adminlte2-templates** provides templates to easily integrate `AdminLTE 2 <https://adminlte.io/>`_ to your Django projects.
Also included in the package is an optional AdminLTE-based theme for Django Admin.

For more information, please see the `documentation <https://django-adminlte2-templates.readthedocs.io/en/latest/>`_ online.
Alternatively, the documentation is also available in the ``docs`` directory of the project.

This Django module assumes that you have prior experience with AdminLTE 2.
Please check the `AdminLTE 2 documentation <https://adminlte.io/docs/2.4/layout>`_ online for your reference.

For a live version of the example project of this app, please check https://djangoadminlte2templates.pythonanywhere.com/.


Requirements
------------
- Python (2.7, 3.4, 3.5, 3.6, 3.7, 3.8)
- Django (1.11, 2.0, 2.1, 2.2, 3.0, 3.1)


Installation
------------

Installing using `pip <https://pip.pypa.io/en/stable/quickstart/>`_:

.. code-block:: console

    pip install django-adminlte2-templates


Add ``adminlte2_templates`` to ``INSTALLED_APPS``:

.. code-block:: python

    INSTALLED_APPS = [
        'adminlte2_templates',
        'adminlte2_admin',  # Optional Django Admin theme
        ..
    ]


Add ``adminlte2_templates.context_processors.template`` to ``context_processors``:

.. code-block:: python

    TEMPLATES = [
            ...
            'OPTIONS': {
                'context_processors': [
                    ...
                    'adminlte2_templates.context_processors.template',
                ],
            ...
    ]



This module provides static files for the following client-side libraries out-of-the-box:

- AdminLTE 2.4.18 (``static/adminlte2/adminlte-2.4.18``)
- Bootstrap 3.4.1 (``static/adminlte2/bootstrap-3.4.1``)
- DataTables 1.10.21 (``static/adminlte2/datatables-1.10.21``)
- Font Awesome 4.7.0 (``static/adminlte2/fontawesome-4.7.0``)
- HTML5Shiv 3.7.3 (``static/adminlte2/html5shiv-3.7.3``)
- jQuery 3.5.1 (``static/adminlte2/jquery-3.5.1``)
- Respond.js 1.4.2 (``static/adminlte2/respond-1.4.2``)
- Select2 4.0.13 (``static/adminlte2/select2-4.0.13``)


Quickstart
----------

Head to the `Quickstart <https://django-adminlte2-templates.readthedocs.io/en/latest/quickstart.html>`_ section of the documentation online for an example usage of **django-adminlte2-templates**.

Also, an example Django project ``example_project`` is included in the module for your reference.


Links
-----

- Documentation: `https://django-adminlte2-templates.readthedocs.io/en/latest/ <https://django-adminlte2-templates.readthedocs.io/en/latest/>`_
- Source Code: `https://github.com/josemarimanio/django-adminlte2-templates/ <https://github.com/josemarimanio/django-adminlte2-templates/>`_
- Package: `https://pypi.org/project/django-adminlte2-templates/ <https://pypi.org/project/django-adminlte2-templates/>`_
- AdminLTE 2: `https://adminlte.io/themes/AdminLTE/index2.html/ <https://adminlte.io/themes/AdminLTE/index2.html/>`_
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。