[Refactor] Move the application running code from __init__ to __main__

This commit is contained in:
Gergely Polonkai 2018-07-02 10:46:02 +02:00
parent 7846d9017d
commit 723cabbe72
2 changed files with 6 additions and 4 deletions

View File

@ -121,7 +121,3 @@ def new_event():
return redirect(url_for('hello'))
return render_template('event-edit.html', form=form)
if __name__ == '__main__':
app.run()

6
calsocial/__main__.py Normal file
View File

@ -0,0 +1,6 @@
from calsocial import CalendarSocialApp
app = CalendarSocialApp('calsocial')
app.run()