relative paths for storing files - so the app can work in any dir

watermarks_url_path
Castro0o 5 years ago
parent bb52385938
commit 5b4ef9e1dd

@ -34,9 +34,9 @@ def about():
# UPLOAD FILES
# THIS SHOULD BE IN CONFIG
app.config["BOOK_UPLOAD_DEWATERMARK"] = "/var/www/TacticalApp/app/static/dewatermark"
app.config["BOOK_UPLOAD_REPUBLISH"] = "/var/www/TacticalApp/app/static/republish"
app.config["BOOK_REQUEST"] = "/var/www/TacticalApp/app/static/request"
app.config["BOOK_UPLOAD_DEWATERMARK"] = "app/static/dewatermark"
app.config["BOOK_UPLOAD_REPUBLISH"] = "app/static/republish"
app.config["BOOK_REQUEST"] = "app/static/request"
app.config["ALLOWED_BOOK_EXTENSIONS"] = ["PDF", "EPUB"]
app.config["MAX_BOOK_FILESIZE"] = 500000000

Loading…
Cancel
Save