Commit 70695a0f authored by PJ Janse van Rensburg's avatar PJ Janse van Rensburg

Mention swatches in docs.

parent 2b3d64fb
...@@ -16,6 +16,9 @@ The first step is to initialize an empty admin interface for your Flask app:: ...@@ -16,6 +16,9 @@ The first step is to initialize an empty admin interface for your Flask app::
from flask import Flask from flask import Flask
from flask_admin import Admin from flask_admin import Admin
# set optional bootswatch theme
app.config['FLASK_ADMIN_SWATCH'] = 'cerulean'
app = Flask(__name__) app = Flask(__name__)
admin = Admin(app, name='microblog', template_mode='bootstrap3') admin = Admin(app, name='microblog', template_mode='bootstrap3')
...@@ -27,7 +30,8 @@ Here, both the *name* and *template_mode* parameters are optional. Alternatively ...@@ -27,7 +30,8 @@ Here, both the *name* and *template_mode* parameters are optional. Alternatively
you could use the :meth:`~flask_admin.base.Admin.init_app` method. you could use the :meth:`~flask_admin.base.Admin.init_app` method.
If you start this application and navigate to `http://localhost:5000/admin/ <http://localhost:5000/admin/>`_, If you start this application and navigate to `http://localhost:5000/admin/ <http://localhost:5000/admin/>`_,
you should see an empty page with a navigation bar on top. you should see an empty page with a navigation bar on top. Customize the look by
specifying a Bootswatch theme that suits your needs (see http://bootswatch.com/3/ for available swatches).
Adding Model Views Adding Model Views
------------------ ------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment