Skip to main content

An integration of the AdminLTE template for Django

Project description

django-adminlte

This package is an integration of the AdminLTE template as a Django application.

It is intended to be a foundation for the generation of the base template file of new Django project.

This project is currently in a very early development state: Please note that defined {% block %} sections may change in further development releases before reaching stability. Please consider this before adopting this module for your own projects.

Usage

The application must be added in the INSTALLED_APPS list within the project settings file.

INSTALLED_APPS = [
   ...
    'adminlte',
]

It is a good practice to write a project base.html file that extends the adminlte's application base template and define the fixed elements for the project there.

{% extends "adminlte/base.html" %}

Please refer to the files adminlte/base_template.html and adminlte/base.html to retrieve the block names. This will be documented at a later stage, when the template will have reached stability.

The template requires the django-menu-gauteron package to dynamically generate the navigation menu.

Demo

This package includes all demonstration/example files packaged with the AdminLTE template. These examples have been "Django-ized".

These files can easily be tested by refering to the urls and menu files.

In the project settings file, add:

INSTALLED_APPS = [
    ...
    'adminlte',
]

In the project urls.py, include:

from django.urls import include, path

urlpatterns = [
    ...
    path('demo/', include('adminlte.demo.urls', namespace='adminlte-demo')),
]

In the project 'menu.py', include:

from django_menu import include

menu = [
    ...
    *include('adminlte.demo.menu'),
]

The demo files can be browsed using http://127.0.0.1:8000/demo/ (if your server runs on 127.0.0.1:8000 and the configured path is demo/).

The example templates can be used as models to generate your own project base template.

Requirements

This package requires

Contribution

Any contribution (code, requests, advices, ...) is very welcome. No project is (or at least should be) a one-man show!

This modest project can get more ambitious thanks to your ideas.

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-adminlte_amigne-0.0.1.0.tar.gz (3.9 MB view details)

Uploaded Source

Built Distribution

django_adminlte_amigne-0.0.1.0-py3-none-any.whl (4.1 MB view details)

Uploaded Python 3

File details

Details for the file django-adminlte_amigne-0.0.1.0.tar.gz.

File metadata

  • Download URL: django-adminlte_amigne-0.0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.2

File hashes

Hashes for django-adminlte_amigne-0.0.1.0.tar.gz
Algorithm Hash digest
SHA256 7458de821eb0f088f03263b3875fa6970773bd87b98c3f795c42691b15a85c5e
MD5 53c93d5fb5827e2e370f43f78f831de9
BLAKE2b-256 f208983039b4bc4ff154a77eb8db8998e549d271201b42ed6242e953743d77cd

See more details on using hashes here.

File details

Details for the file django_adminlte_amigne-0.0.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_adminlte_amigne-0.0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.2

File hashes

Hashes for django_adminlte_amigne-0.0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34308b41c387f6b0fc2db4f056d9e77ecbc39504ac867562c7048b84f9a076ee
MD5 4cd8adb19a14c4a15fd44bc870548518
BLAKE2b-256 00bd879602f77b20a8c92276d8d69a6fe7a5f6292c1ec313edacf02dbe62c0cf

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