From 7b41b43f11876d819b5dc2443b9fa95ad1e6e7f3 Mon Sep 17 00:00:00 2001 From: debrice Date: Sun, 5 Feb 2012 19:57:27 -0800 Subject: [PATCH] Add example of blueprint module import --- Large-app-how-to.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Large-app-how-to.md b/Large-app-how-to.md index 2ff47ab..f09eb2c 100644 --- a/Large-app-how-to.md +++ b/Large-app-how-to.md @@ -378,9 +378,14 @@ Here is the `/app/__init__.py` return render_template('404.html'), 404 from app.users.views import mod as usersModule - app.register_blueprint(usersModule) + # Later on you'll import the other blueprints the same way: + #from app.comments.views import mod as commentsModule + #from app.posts.views import mod as postsModule + #app.register_blueprint(commentsModule) + #app.register_blueprint(postsModule) + now you can go in your root, activate your virtual env and run `python run.py` ... something like: brice@Brice:~/Projects/dev$ . env/bin/activate