From b343dc73e5ea4aaf1314b6b277c3806f15ac0635 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Wed, 8 Apr 2015 12:33:40 +0200 Subject: moving feed views related code in views.feed and massive use of url_for --- runserver.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'runserver.py') diff --git a/runserver.py b/runserver.py index db1c4410..d1f5702c 100755 --- a/runserver.py +++ b/runserver.py @@ -19,7 +19,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . import calendar -from bootstrap import conf, application, db, populate_g +from bootstrap import conf, application, populate_g from flask.ext.babel import Babel from flask.ext.babel import format_datetime @@ -30,12 +30,10 @@ if conf.ON_HEROKU: babel = Babel(application) # Jinja filters -application.jinja_env.filters['datetime'] = format_datetime - -#@register.filter def month_name(month_number): return calendar.month_name[month_number] application.jinja_env.filters['month_name'] = month_name +application.jinja_env.filters['datetime'] = format_datetime # Views from flask.ext.restful import Api -- cgit