1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 23:05:10 +01:00

Support for custom url to run the app under

This commit is contained in:
2016-07-17 20:15:31 +02:00
parent f99760e807
commit 7fd61c8426

View File

@@ -33,6 +33,12 @@ app = Flask(__name__)
app.config.from_object(__name__)
db = Database(app)
# set custom url for the app, for example '/bookmarks'
try:
app.config['APPLICATION_ROOT'] = settings.APPLICATION_ROOT
except AttributeError:
pass
def getkey():
return os.urandom(24).encode('hex')