Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.56 KB

README.rst

File metadata and controls

51 lines (35 loc) · 1.56 KB

Flask-AdminLTE

image

Requirements Status

Flask-AdminLTE packages AdminLTE into an extension that mostly consists of a blueprint named 'adminlte'. It can also create links to serve AdminLTE from a CDN and works with no boilerplate code in your application.

Installation

If you're not already using virtualenv then I strongly recommend you do, it's just going to make your life a whole lot easier. The Flask Mega Tutorial has instructions on setting up virtualenv.

Optional but recommended step to use a virtualenv:

virtualenv myapp
pip install -r requirements.txt

Running the sample application

There is a sample application in sample_application/ which you can adapt to your needs. After installing the requirements run it from the project directory:

python run_sample_application.py

Usage

Here is an example:

from flask_adminlte import AdminLTE

[...]

AdminLTE(app)

This makes some new templates available, containing blank pages that include all bootstrap resources, and have predefined blocks where you can put your content.