Skip to content

Instantly share code, notes, and snippets.

@gingerlime
gingerlime / test.py
Created February 15, 2014 19:00
trying to use url_prefix with Flask
#!/usr/bin/env python
# coding=utf8
from flask import Flask, Blueprint, redirect, url_for
from flask.ext.bootstrap import Bootstrap
bp = Blueprint('blueprint', __name__)
app = Flask(__name__)
Bootstrap(app)
app.register_blueprint(bp, prefix='/prefix')