Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
58789da1
Commit
58789da1
authored
Dec 08, 2014
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mrjoes/flask-admin
parents
815ee576
2e8f8486
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
db_geoa.rst
doc/db_geoa.rst
+4
-0
No files found.
doc/db_geoa.rst
View file @
58789da1
...
@@ -45,6 +45,7 @@ use this field rather that the one that ships with GeoAlchemy when defining your
...
@@ -45,6 +45,7 @@ use this field rather that the one that ships with GeoAlchemy when defining your
models::
models::
from flask.ext.admin.contrib.geoa.sqltypes import Geometry
from flask.ext.admin.contrib.geoa.sqltypes import Geometry
from flask.ext.admin.contrib.geoa import ModelView
# .. flask initialization
# .. flask initialization
db = SQLAlchemy(app)
db = SQLAlchemy(app)
...
@@ -61,6 +62,9 @@ models::
...
@@ -61,6 +62,9 @@ models::
db.create_all()
db.create_all()
app.run('0.0.0.0', 8000)
app.run('0.0.0.0', 8000)
Note that you also have to use the ``ModelView`` class imported from ``geoa``,
rather than the one imported from ``sqla``.
Limitations
Limitations
-----------
-----------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment