From ba14e1263bb6e783d32d568b52812b32c70fa4fe Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Mon, 23 Nov 2015 14:55:37 +0000 Subject: [PATCH] Fix code style --- README.md | 3 ++- app.py | 12 ++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 933bb4489..2b075249d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -https://travis-ci.org/alphagov/notifications-admin.svg +[![Build Status](https://api.travis-ci.org/alphagov/noworlktifications-admin.svg?branch=master)](https://api.travis-ci.org/alphagov/notifications-admin.svg?branch=master) + # notifications-admin Application to handle the admin functions of the notifications application. diff --git a/app.py b/app.py index 3ea2a77ea..080876031 100644 --- a/app.py +++ b/app.py @@ -1,15 +1,10 @@ import os from flask import Flask, render_template from flask.ext import assets -from flask.ext.assets import Environment, Bundle -#from flask.ext.scss import Scss -#from flask.ext.sass import sass from webassets.filter import get_filter app = Flask(__name__) -#Scss(app, static_dir='static', asset_dir='assets/stylesheets') -#sass(app, input_dir='assets/stylesheets', output_dir='static') # debug mode - switch to False for production app.config['ASSETS_DEBUG'] = True @@ -91,15 +86,16 @@ env.register( def index(): return render_template('index.html') + @app.route("/govuk") def govuk(): return render_template('govuk_template.html') + @app.route("/helloworld") def helloworld(): return render_template('hello-world.html') - -if __name__ == "__main__": - app.run(debug=True) \ No newline at end of file +if __name__ == '__main__': + app.run(debug=True)