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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user