Skip to main content

Django application contain adminlte static files.

Project description

Django application contain adminlte static files

Install

pip install django-static-adminlte

Settings

INSTALLED_APPS = [
    ...
    "django_static_adminlte",
    ...
]

Use static resource

{% load staticfiles %}

{% block style %}
    <link rel="stylesheet" href="{% static "bootstrap/css/bootstrap.min.css" %}">
    <link rel="stylesheet" href="{% static "font-awesome/css/font-awesome.min.css" %}">
    <link rel="stylesheet" href="{% static "ionicons/css/ionicons.min.css" %}">
    <link rel="stylesheet" href="{% static "adminlte/css/AdminLTE.min.css" %}">
    <link rel="stylesheet" href="{% static "adminlte/css/skins/_all-skins.min.css" %}">
    <link rel="stylesheet" href="{% static "adminlte-app-fix.css" %}">
    <!--[if lt IE 9]>
    <script src="{% static "html5shiv/html5shiv.min.js" %}"></script>
    <script src="{% static "respond/respond.min.js" %}"></script>
    <![endif]-->
{% endblock %}

{% block script %}
    <script src="{% static "jquery/jquery.min.js" %}"></script>
    <script src="{% static "bootstrap/js/bootstrap.min.js" %}"></script>
    <script src="{% static "jquery-slimscroll/jquery.slimscroll.min.js" %}"></script>
    <script src="{% static "fastclick/fastclick.js" %}"></script>
    <script src="{% static "adminlte/js/adminlte.min.js" %}"></script>
    <script>
        $(document).ready(function () {
            $('.sidebar-menu').tree()
        });
    </script>
{% endblock %}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-static-adminlte-2.4.3.2.tar.gz (3.1 MB view details)

Uploaded Source

File details

Details for the file django-static-adminlte-2.4.3.2.tar.gz.

File metadata

File hashes

Hashes for django-static-adminlte-2.4.3.2.tar.gz
Algorithm Hash digest
SHA256 9ac13117c264c224f27be294d52fffaa5eeee6fcaffd31278da7f236f7554f27
MD5 98aca2e1764b169900cc5eb49a04c240
BLAKE2b-256 cacfe711ef2e74777822c0a34c29386bb73239e62fe92df8126336e4d8508a55

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page