mirror of
https://github.com/wassname/flask-cloudy.git
synced 2026-09-09 11:22:27 +08:00
Set default for STORAGE_SERVER to True
Set default for STORAGE_SERVER to True to bring it in line with readme.
This commit is contained in:
+2
-2
@@ -202,7 +202,7 @@ class Storage(object):
|
||||
secret = app.config.get("STORAGE_SECRET", None)
|
||||
container = app.config.get("STORAGE_CONTAINER", None)
|
||||
allowed_extensions = app.config.get("STORAGE_ALLOWED_EXTENSIONS", None)
|
||||
serve_files = app.config.get("STORAGE_SERVER", False)
|
||||
serve_files = app.config.get("STORAGE_SERVER", True)
|
||||
serve_files_url = app.config.get("STORAGE_SERVER_URL", "files")
|
||||
|
||||
self.config["serve_files"] = serve_files
|
||||
@@ -575,4 +575,4 @@ class Object(object):
|
||||
:return:
|
||||
"""
|
||||
warnings.warn("DEPRECATED: flask_cloudy.Object.short_url has been deprecated, use flask_cloudy.Object.url or flask_cloudy.Object.full_url")
|
||||
return self.get_url()
|
||||
return self.get_url()
|
||||
|
||||
Reference in New Issue
Block a user