AdminLTE2 Templates, Template Tags, and Admin Theme for Flask-Admin
Flask-AdminLTE2 packages AdminLTE2 <http://www.almsaeedstudio.com/>_ into an extension that mostly consists
of a blueprint named 'adminlte'. It can also create links to serve AdminLTE2 and works with no boilerplate code in your application.
Installation
Installation using pip:
pip install Flask-AdminLTE2
Compatibility
This package is compatible Python versions 2.7, 3.4, 3.5 and 3.6.
Usage
Here is an example:
from flask_adminlte2 import AdminLTE2
[...]
AdminLTE2()(app)
from flask_adminlte2 import AdminLTEModelView, AdminLTEFileAdmin
class MyModelView(AdminLTEModelView):
pass
class MyFileAdmin(AdminLTEFileAdmin):
pass
class MyAdminIndexView(AdminIndexView):
@expose('/', methods=['GET', 'POST'])
def index(self):
return self.render('myadmin/my_index.html')
from flask_admin import Admin
admin = Admin(name='Admin Dashboard',
base_template='myadmin/my_master.html',
template_mode='bootstrap3',
index_view=MyAdminIndexView())
base template myadmin/my_master.html code:
{% extends 'adminlte2/base.html' %}
[...]
index template myadmin/my_index.html code:
{% extends 'adminlte2/my_master.html' %}
{% block body %}
{{ super() }}
[...]
{% endblock body %}
This makes some new templates available, containing blank pages that include all bootstrap resources, and have predefined blocks where you can put your content.
Screenshots
Admin Area:
-
Home :
-
Demo Model :
-
Demo List Model:
-
Demo Creating Model:
-
Demo Editing Model:
Metadata
Release files for Flask-AdminLTE2 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Flask-AdminLTE2-1.0.0.tar.gz | 1.7 MB | Without provenance | Details for Flask-AdminLTE2-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Flask_AdminLTE2-1.0.0-py3.7.egg | Legacy Egg format | - | - | Details for Flask_AdminLTE2-1.0.0-py3.7.egg |
Total release size: 3.6 MB
Release files / Flask-AdminLTE2-1.0.0.tar.gz
| Download URL | Flask-AdminLTE2-1.0.0.tar.gz |
|---|---|
| Size | 1.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5ac44b0addc541ae2474fc6f53e3a91c8dc5d0f09020a33df377ed4c18d1da9
|
|
BLAKE2b-256 checksum How to use checksums |
8e78c4a21085757217f6a575a966e85a071c7f5294b14306b5b8d7fdfe341e27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
|
Release files / Flask_AdminLTE2-1.0.0-py3.7.egg
| Download URL | Flask_AdminLTE2-1.0.0-py3.7.egg |
|---|---|
| Size | 1.9 MB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
15988c2df1274f58ef34f031fd5b9218b94d51d08b0364cda6f6713eb3600b20
|
|
BLAKE2b-256 checksum How to use checksums |
9222f1fb2090a1ef162087a899e076515d591d9fb52fa96742239aeda51501f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3
|
Security for Flask-AdminLTE2 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.