... | ... | @@ -42,8 +42,8 @@ in this lab we'll |
|
|
|
|
|
* use Blueprint to define the file as a blueprint called 'twits\_blueprint' - see the 'My First Blueprint' example in http://flask.pocoo.org/docs/0.12/blueprints/
|
|
|
|
|
|
twits_blueprint = Blueprint('twits_blueprint', \_\_name\_\_,
|
|
|
templat\e_folder = 'templates')
|
|
|
twits_blueprint = Blueprint('twits_blueprint', __name__,
|
|
|
template_folder = 'templates')
|
|
|
|
|
|
|
|
|
* change the routes to @twit\_blueprint routes e.g.
|
... | ... | |