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
2d43a263
Commit
2d43a263
authored
Jul 02, 2019
by
P.J. Janse van Rensburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sqla example: add favicon and update requirements.txt
parent
e9a9f6fa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
main.py
examples/sqla/admin/main.py
+6
-1
favicon.ico
examples/sqla/admin/static/favicon.ico
+0
-0
requirements.txt
examples/sqla/requirements.txt
+4
-0
No files found.
examples/sqla/admin/main.py
View file @
2d43a263
from
admin
import
app
,
db
from
admin.models
import
AVAILABLE_USER_TYPES
,
User
,
Post
,
Tag
,
Tree
from
flask
import
Markup
from
flask
import
Markup
,
send_file
from
wtforms
import
validators
...
...
@@ -31,6 +31,11 @@ def index():
return
tmp
@
app
.
route
(
'/favicon.ico'
)
def
favicon
():
return
send_file
(
'static/favicon.ico'
)
# Custom filter class
class
FilterLastNameBrown
(
BaseSQLAFilter
):
def
apply
(
self
,
query
,
value
,
alias
=
None
):
...
...
examples/sqla/admin/static/favicon.ico
0 → 100644
View file @
2d43a263
1.12 KB
examples/sqla/requirements.txt
View file @
2d43a263
...
...
@@ -7,3 +7,7 @@ enum34; python_version < '3.0'
sqlalchemy_utils
arrow
colour
# note: for local development, replace 'Flask-Admin' above with a reference to
# your local copy of the repo e.g. '-e .' if you're installing this from the
# repo's root directory
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