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
f2323883
Commit
f2323883
authored
Oct 17, 2018
by
PJ Janse van Rensburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove 'quickstart' example.
parent
c6d37531
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
0 additions
and
83 deletions
+0
-83
README.rst
examples/quickstart/README.rst
+0
-24
__init__.py
examples/quickstart/__init__.py
+0
-0
app.py
examples/quickstart/app.py
+0
-13
app2.py
examples/quickstart/app2.py
+0
-19
app3.py
examples/quickstart/app3.py
+0
-21
requirements.txt
examples/quickstart/requirements.txt
+0
-2
index.html
examples/quickstart/templates/index.html
+0
-4
No files found.
examples/quickstart/README.rst
deleted
100644 → 0
View file @
c6d37531
Simple Flask-Admin examples used by the quickstart tutorial.
To run this example:
1. Clone the repository::
git clone https://github.com/flask-admin/flask-admin.git
cd flask-admin
2. Create and activate a virtual environment::
virtualenv env
source env/bin/activate
3. Install requirements::
pip install -r 'examples/quickstart/requirements.txt'
4. Run the application with any of the following::
python examples/quickstart/app.py
python examples/quickstart/app2.py
python examples/quickstart/app3.py
examples/quickstart/__init__.py
deleted
100644 → 0
View file @
c6d37531
examples/quickstart/app.py
deleted
100644 → 0
View file @
c6d37531
from
flask
import
Flask
from
flask_admin
import
Admin
app
=
Flask
(
__name__
)
app
.
debug
=
True
admin
=
Admin
(
app
,
name
=
"Example: Quickstart"
)
if
__name__
==
'__main__'
:
# Start app
app
.
run
(
debug
=
True
)
examples/quickstart/app2.py
deleted
100644 → 0
View file @
c6d37531
from
flask
import
Flask
from
flask_admin
import
Admin
,
BaseView
,
expose
class
MyView
(
BaseView
):
@
expose
(
'/'
)
def
index
(
self
):
return
self
.
render
(
'index.html'
)
app
=
Flask
(
__name__
)
app
.
debug
=
True
admin
=
Admin
(
app
,
name
=
"Example: Quickstart2"
)
admin
.
add_view
(
MyView
(
name
=
'Hello'
))
if
__name__
==
'__main__'
:
# Start app
app
.
run
()
examples/quickstart/app3.py
deleted
100644 → 0
View file @
c6d37531
from
flask
import
Flask
from
flask_admin
import
Admin
,
BaseView
,
expose
class
MyView
(
BaseView
):
@
expose
(
'/'
)
def
index
(
self
):
return
self
.
render
(
'index.html'
)
app
=
Flask
(
__name__
)
app
.
debug
=
True
admin
=
Admin
(
app
,
name
=
"Example: Quickstart3"
)
admin
.
add_view
(
MyView
(
name
=
'Hello 1'
,
endpoint
=
'test1'
,
category
=
'Test'
))
admin
.
add_view
(
MyView
(
name
=
'Hello 2'
,
endpoint
=
'test2'
,
category
=
'Test'
))
admin
.
add_view
(
MyView
(
name
=
'Hello 3'
,
endpoint
=
'test3'
,
category
=
'Test'
))
if
__name__
==
'__main__'
:
# Start app
app
.
run
()
examples/quickstart/requirements.txt
deleted
100644 → 0
View file @
c6d37531
Flask
Flask-Admin
examples/quickstart/templates/index.html
deleted
100644 → 0
View file @
c6d37531
{% extends 'admin/master.html' %}
{% block body %}
Hello World from MyView!
{% endblock %}
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