Skip to content

Commit

Permalink
Small fix to bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
rehandalal committed Oct 2, 2012
1 parent 2b3f526 commit 804b24d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 53 deletions.
8 changes: 2 additions & 6 deletions standup/app.py
Expand Up @@ -486,10 +486,8 @@ def _day(day):
return datetime.strptime(day, '%Y-%m-%d')


@app.before_request
def bootstrap():
#Add Jinja extensions
app.jinja_env.add_extension('helpers.jinja2.ifchanged.IfChangedExtension')

# Jinja global variables
projects = Project.query.order_by(Project.name).filter(Project.statuses.any())
teams = Team.query.order_by(Team.name).all()
Expand All @@ -506,9 +504,7 @@ def bootstrap():

if __name__ == '__main__':
db.create_all()

app.before_request(bootstrap)


# Bind to PORT if defined, otherwise default to 5000.
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port, debug=settings.DEBUG)
1 change: 0 additions & 1 deletion standup/helpers/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion standup/helpers/jinja2/__init__.py

This file was deleted.

45 changes: 0 additions & 45 deletions standup/helpers/jinja2/ifchanged.py

This file was deleted.

0 comments on commit 804b24d

Please sign in to comment.