forked from gergely/calendar-social
[Refactor] Move the application running code from __init__ to __main__
This commit is contained in:
parent
7846d9017d
commit
723cabbe72
@ -121,7 +121,3 @@ def new_event():
|
|||||||
return redirect(url_for('hello'))
|
return redirect(url_for('hello'))
|
||||||
|
|
||||||
return render_template('event-edit.html', form=form)
|
return render_template('event-edit.html', form=form)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
app.run()
|
|
||||||
|
6
calsocial/__main__.py
Normal file
6
calsocial/__main__.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from calsocial import CalendarSocialApp
|
||||||
|
|
||||||
|
|
||||||
|
app = CalendarSocialApp('calsocial')
|
||||||
|
|
||||||
|
app.run()
|
Loading…
Reference in New Issue
Block a user