Commits

Anonymous committed 34395b1

added test blueprint to show how it can be used, fixed requirements

Comments (0)

Files changed (3)

flaskskel/templates/default_project/+flask_project_name+/blueprints/__init__.py

-#from .some_bp import home_bp
+from .home import home_bp
 
 def register_blue_prints(app):
-#    app.register_blueprint(home_bp)
-    pass
+    app.register_blueprint(home_bp)

flaskskel/templates/default_project/+flask_project_name+/blueprints/home.py

+from flask import Blueprint
+
+home_bp = Blueprint('home_bp', __name__)
+
+@home_bp.route('/')
+def home():
+    return 'hi there!'

flaskskel/templates/default_project/requirements.txt

 tweepy
 https://github.com/eka/flask-mongoengine/tarball/master
 -e git+http://github.com/facebook/python-sdk.git#egg=facebook-sdk
-http://bitbucket.org/estebanfeldman/flask-script/get/tip.gz
+http://bitbucket.org/eka/flask-script/get/tip.gz