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
65f51dd1
Commit
65f51dd1
authored
Jun 14, 2015
by
Petrus J.v.Rensburg
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'examples'
parents
730aca07
cdf2f5b0
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
11 additions
and
9 deletions
+11
-9
app.py
examples/geo-alchemy/app.py
+1
-9
config.py
examples/geo-alchemy/config.py
+10
-0
README.rst
examples/layout_bootstrap3/README.rst
+0
-0
__init__.py
examples/layout_bootstrap3/__init__.py
+0
-0
app.py
examples/layout_bootstrap3/app.py
+0
-0
requirements.txt
examples/layout_bootstrap3/requirements.txt
+0
-0
layout.css
examples/layout_bootstrap3/static/layout.css
+0
-0
index.html
examples/layout_bootstrap3/templates/admin/index.html
+0
-0
create.html
examples/layout_bootstrap3/templates/create.html
+0
-0
edit.html
examples/layout_bootstrap3/templates/edit.html
+0
-0
layout.html
examples/layout_bootstrap3/templates/layout.html
+0
-0
list.html
examples/layout_bootstrap3/templates/list.html
+0
-0
No files found.
examples/geo-alchemy/app.py
View file @
65f51dd1
...
...
@@ -8,17 +8,9 @@ from flask_admin.contrib.geoa import ModelView
# Create application
app
=
Flask
(
__name__
)
# Create dummy secrey key so we can use sessions
app
.
config
[
'SECRET_KEY'
]
=
'123456790'
app
.
config
[
'SQLALCHEMY_DATABASE_URI'
]
=
'postgresql+psycopg2://flask_admin_geo:flask_admin_geo@localhost/flask_admin_geo'
app
.
config
[
'SQLALCHEMY_ECHO'
]
=
True
app
.
config
.
from_pyfile
(
'config.py'
)
db
=
SQLAlchemy
(
app
)
app
.
config
[
'MAPBOX_MAP_ID'
]
=
'...'
app
.
config
[
'MAPBOX_ACCESS_TOKEN'
]
=
'...'
class
Point
(
db
.
Model
):
id
=
db
.
Column
(
db
.
Integer
,
primary_key
=
True
)
...
...
examples/geo-alchemy/config.py
0 → 100644
View file @
65f51dd1
# Create dummy secrey key so we can use sessions
SECRET_KEY
=
'123456790'
# database connection
SQLALCHEMY_DATABASE_URI
=
'postgresql+psycopg2://flask_admin_geo:flask_admin_geo@localhost/flask_admin_geo'
SQLALCHEMY_ECHO
=
True
# credentials for loading map tiles from mapbox
MAPBOX_MAP_ID
=
'...'
MAPBOX_ACCESS_TOKEN
=
'...'
\ No newline at end of file
examples/layout
-
bootstrap3/README.rst
→
examples/layout
_
bootstrap3/README.rst
View file @
65f51dd1
File moved
examples/layout
-
bootstrap3/__init__.py
→
examples/layout
_
bootstrap3/__init__.py
View file @
65f51dd1
File moved
examples/layout
-
bootstrap3/app.py
→
examples/layout
_
bootstrap3/app.py
View file @
65f51dd1
File moved
examples/layout
-
bootstrap3/requirements.txt
→
examples/layout
_
bootstrap3/requirements.txt
View file @
65f51dd1
File moved
examples/layout
-
bootstrap3/static/layout.css
→
examples/layout
_
bootstrap3/static/layout.css
View file @
65f51dd1
File moved
examples/layout
-
bootstrap3/templates/admin/index.html
→
examples/layout
_
bootstrap3/templates/admin/index.html
View file @
65f51dd1
File moved
examples/layout
-
bootstrap3/templates/create.html
→
examples/layout
_
bootstrap3/templates/create.html
View file @
65f51dd1
File moved
examples/layout
-
bootstrap3/templates/edit.html
→
examples/layout
_
bootstrap3/templates/edit.html
View file @
65f51dd1
File moved
examples/layout
-
bootstrap3/templates/layout.html
→
examples/layout
_
bootstrap3/templates/layout.html
View file @
65f51dd1
File moved
examples/layout
-
bootstrap3/templates/list.html
→
examples/layout
_
bootstrap3/templates/list.html
View file @
65f51dd1
File moved
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