mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-07 03:45:10 +01:00
Properly initialise when in a wsgi application server
This commit is contained in:
@@ -397,8 +397,7 @@ def adduser(systemkey):
|
|||||||
abort(404)
|
abort(404)
|
||||||
|
|
||||||
|
|
||||||
|
# Initialise
|
||||||
if __name__ == '__main__':
|
|
||||||
# create the bookmark, user and public tag tables if they do not exist
|
# create the bookmark, user and public tag tables if they do not exist
|
||||||
Bookmark.create_table(True)
|
Bookmark.create_table(True)
|
||||||
User.create_table(True)
|
User.create_table(True)
|
||||||
@@ -410,5 +409,6 @@ if __name__ == '__main__':
|
|||||||
all_tags[user.key] = get_tags_for_user(user.key)
|
all_tags[user.key] = get_tags_for_user(user.key)
|
||||||
print user.key
|
print user.key
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
# run the application
|
# run the application
|
||||||
app.run(port=9999, debug=True)
|
app.run(port=9999, debug=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user