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
1cf0e6c1
Commit
1cf0e6c1
authored
Dec 23, 2015
by
Arthur Bressan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates Managing Files section on the docs and AUTHORS
parent
e94787c6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
AUTHORS
AUTHORS
+1
-0
advanced.rst
doc/advanced.rst
+18
-0
No files found.
AUTHORS
View file @
1cf0e6c1
...
@@ -22,5 +22,6 @@ Patches and Suggestions
...
@@ -22,5 +22,6 @@ Patches and Suggestions
- Artem Serga <artem@serga.name>
- Artem Serga <artem@serga.name>
- Koblaid
- Koblaid
- Julian Gonggrijp (UUDigitalHumanitieslab)
- Julian Gonggrijp (UUDigitalHumanitieslab)
- Arthur de Paula Bressan (ArthurPBressan)
.. and more. If I missed you, let me know.
.. and more. If I missed you, let me know.
doc/advanced.rst
View file @
1cf0e6c1
...
@@ -79,9 +79,27 @@ can use it by adding a FileAdmin view to your app::
...
@@ -79,9 +79,27 @@ can use it by adding a FileAdmin view to your app::
path = op.join(op.dirname(__file__), 'static')
path = op.join(op.dirname(__file__), 'static')
admin.add_view(FileAdmin(path, '/static/', name='Static Files'))
admin.add_view(FileAdmin(path, '/static/', name='Static Files'))
FileAdmin also has out-of-the-box support for managing files located on a Amazon Simple Storage Service
bucket. To add it to your app::
from flask_admin import Admin
from flask_admin.contrib.fileadmin.s3 import S3FileAdmin
admin = Admin()
admin.add_view(S3FileAdmin('files_bucket', 'us-east-1', 'key_id', 'secret_key')
You can disable uploads, disable file deletion, restrict file uploads to certain types, etc.
You can disable uploads, disable file deletion, restrict file uploads to certain types, etc.
Check :mod:`flask_admin.contrib.fileadmin` in the API documentation for more details.
Check :mod:`flask_admin.contrib.fileadmin` in the API documentation for more details.
Adding new file backends
************************
You can also implement your own storage backend by creating a class that implements the same
methods defined in the `LocalFileStorage` class. Check :mod:`flask_admin.contrib.fileadmin` in the
API documentation for details on the methods.
Adding A Redis Console
Adding A Redis Console
----------------------
----------------------
...
...
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