Integration of Flask-Admin and AdminLTE3 template.
Project description
AdminLTE3 Templates, Template Tags, and Admin Theme for Flask-Admin
Flask-AdminLTE3 packages AdminLTE3 <http://www.almsaeedstudio.com/>
_ into an extension that mostly consists
of a blueprint named 'adminlte'. It can also create links to serve AdminLTE3 and works with no boilerplate code in your application.
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)
from flask_adminlte3 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='bootstrap4',
index_view=MyAdminIndexView())
base template myadmin/my_master.html code:
{% extends 'adminlte3/base.html' %}
[...]
index template myadmin/my_index.html code:
{% extends 'adminlte3/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.
We provide the following parameters to modify the style of the software:
# cerulean, cosmo, cyborg, flatly, journal, litera, lumen, minty, sandstone, simplex, sketchy
FLASK_ADMIN_THEME
# dark or light
FLASK_ADMIN_STYLE
# True or False
FLASK_ADMIN_SMALL_TEXT
# True or False
FLASK_ADMIN_NAV_FLAT
# True or False
FLASK_ADMIN_SIDEBAR_DISABLE_EXPAND
Screenshots
Admin Area:
-
Home :
-
Demo Model :
-
Demo List Model:
-
Demo Creating Model:
-
Demo Editing Model:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Flask-AdminLTE3-1.0.1.zip
.
File metadata
- Download URL: Flask-AdminLTE3-1.0.1.zip
- Upload date:
- Size: 7.8 MB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 489c1fa01b7c9c3106a035872e9a2140f69dad63a7a4d81d3c104ba4377b8243 |
|
MD5 | 73278e04a4710eb0c96c61ba7c7b5ff3 |
|
BLAKE2b-256 | 88e094a2481b212bfa3104387bf08ab4346a94dbe8277b57c07ed2ec28ed598d |