Skip to main content

Flask-AdminLTE3

Flask-AdminLTE3 packages AdminLTE3 into an extension that mostly consists of a blueprint named 'adminlte'. It is Admin Theme for Flask-Admin.

Installation

Installation using pip:

pip install Flask-AdminLTE3

Compatibility

This package is compatible Python versions 2.7, 3.4, 3.5 and 3.6.

Usage

Here is an example:

from flask_adminlte3 import AdminLTE3

[...]

AdminLTE3(app)

Admin Theme for Flask-Admin

from flask_admin.contrib.sqla import ModelView
from flask_admin.contrib.fileadmin import FileAdmin


class AdminLTEModelView(ModelView):
    list_template = 'flask-admin/model/list.html'
    create_template = 'flask-admin/model/create.html'
    edit_template = 'flask-admin/model/edit.html'
    details_template = 'flask-admin/model/details.html'

    create_modal_template = 'flask-admin/model/modals/create.html'
    edit_modal_template = 'flask-admin/model/modals/edit.html'
    details_modal_template = 'flask-admin/model/modals/details.html'


class AdminLTEFileAdmin(FileAdmin):
    list_template = 'flask-admin/file/list.html'

    upload_template = 'flask-admin/file/form.html'
    mkdir_template = 'flask-admin/file/form.html'
    rename_template = 'flask-admin/file/form.html'
    edit_template = 'flask-admin/file/form.html'

    upload_modal_template = 'flask-admin/file/modals/form.html'
    mkdir_modal_template = 'flask-admin/file/modals/form.html'
    rename_modal_template = 'flask-admin/file/modals/form.html'
    edit_modal_template = 'flask-admin/file/modals/form.html'


class MyAdminIndexView(AdminIndexView):
    @expose('/', methods=['GET', 'POST'])
    def index(self):
        return self.render('myadmin3/my_index.html')


from flask_admin import Admin
admin = Admin(name='Admin Dashboard',
            base_template='myadmin3/my_master.html',
            template_mode='bootstrap4',
            index_view=MyAdminIndexView())

base template myadmin3/my_master.html code:

{% extends 'flask-admin/base.html' %}
[...]

index template myadmin3/my_index.html code:

{% extends 'myadmin3/my_master.html' %}
[...]

Screenshots

Admin Area:

  • Demo Model :model screenshot

  • Demo List Model: model list

  • Demo Creating Model: model create

  • Demo Editing Model: model edit

Metadata

Release files for Flask-AdminLTE3 1.0.9

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

Source distribution (sdist)

Source distribution for Flask-AdminLTE3 1.0.9
File Size Uploaded
Flask-AdminLTE3-1.0.9.tar.gz 21.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for Flask-AdminLTE3 1.0.9
File Interpreter ABI Platform
Flask_AdminLTE3-1.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 44.2 MB

Release files / Flask-AdminLTE3-1.0.9.tar.gz

Download URL Flask-AdminLTE3-1.0.9.tar.gz
Size 21.4 MB
Tags Source
SHA-256 checksum
How to use checksums
237b233cd26b98e415666dcde46dbcd24fc2ce336db6f9bf829a07a9347028bf
BLAKE2b-256 checksum
How to use checksums
473b9979f5f29c5c5af99ac58479dc6abf0f2bb3e03419dd63628cefbdcc4f0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.9

Release files / Flask_AdminLTE3-1.0.9-py3-none-any.whl

Download URL Flask_AdminLTE3-1.0.9-py3-none-any.whl
Size 22.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
77a5c6c1b2d1b943181dc0662faad68e7c1c2d2c2c4eaec4647ddef4cea9ba45
BLAKE2b-256 checksum
How to use checksums
e05ec39fb67fcf620812d36505e851e86f654e9221643d2c4244a409ee324763
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.7.9

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

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