@@ -55,12 +55,23 @@ The first step is to initialize an empty admin interface for your Flask app::
5555
5656 app.run()
5757
58- Here, both the *name * and *theme * parameters are optional. Alternatively,
59- you could use the :meth: `~flask_admin.base.Admin.init_app ` method.
58+ Here, both the *name * and *theme * parameters are optional, have a look to the API
59+ :class: `~flask_admin.base.Admin ` for more details about all other parameters.
60+ Alternatively, you could use the :meth: `~flask_admin.base.Admin.init_app ` method.
6061
6162If you start this application and navigate to `http://localhost:5000/admin/ <http://localhost:5000/admin/ >`_,
6263you should see an empty page with a navigation bar on top. Customize the look by
6364specifying one of the included Bootswatch themes (see https://bootswatch.com/4/ for a preview of the swatches).
65+ Here is list of all available themes:::
66+
67+ all_themes = [
68+ "default", "cerulean", "cosmo", "cyborg", "darkly",
69+ "flatly", "journal", "litera", "lumen", "lux", "materia",
70+ "minty", "pulse", "sandstone", "simplex", "sketchy", "slate",
71+ "solar", "spacelab", "superhero", "united", "yeti"
72+ ]
73+
74+
6475
6576Adding Model Views
6677------------------
@@ -396,6 +407,56 @@ For this you could override only the view in question, and all the links to it w
396407
397408 return self.render('create_user.html')
398409
410+
411+ Configure Views
412+ ---------------
413+ Views can be configured by changing some Environment variables.
414+
415+
416+ =============================== ==============================================
417+ Variable Desctiption
418+ =============================== ==============================================
419+ Geographical Map views To enable use of maps:
420+
421+ ``FLASK_ADMIN_MAPS``
422+
423+ Usually Works with:
424+
425+ ``FLASK_ADMIN_DEFAULT_CENTER_LAT ``
426+
427+ ``FLASK_ADMIN_DEFAULT_CENTER_LONG ``
428+
429+ Can be integrated with MapBox using:
430+
431+ ``FLASK_ADMIN_MAPBOX_MAP_ID ``
432+
433+ ``FLASK_ADMIN_MAPBOX_ACCESS_TOKEN ``
434+
435+ And can use with Google Search with:
436+
437+ ``FLASK_ADMIN_MAPS_SEARCH ``
438+
439+ ``FLASK_ADMIN_GOOGLE_MAPS_API_KEY ``
440+
441+ see more :ref: `display-map-widgets `
442+
443+ Exception handling To show exceptions on the output rather than
444+ flash messages:
445+
446+ ``FLASK_ADMIN_RAISE_ON_VIEW_EXCEPTION ``
447+
448+ ``FLASK_ADMIN_RAISE_ON_INTEGRITY_ERROR ``
449+
450+ ``FLASK_ADMIN_RAISE_ON_INTEGRITY_ERROR ``
451+
452+ see more :ref: `raise-exceptions-instead-of-flash `
453+ =============================== ==============================================
454+
455+ **Note: ** The ``FLASK_ADMIN_SWATCH ``, ``FLASK_ADMIN_FLUID_LAYOUT `` variables are
456+ deprecated and moved to :class: `~flask_admin.theme.BootstrapTheme `
457+
458+
459+
399460Working With the Built-in Templates
400461===================================
401462
0 commit comments