Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2318)  |  Call(1442)  |  Derive(51)  |  Import(825)
Represents a blueprint.  A blueprint is an object that records
functions that will be called with the
:class:`~flask.blueprint.BlueprintSetupState` later to register functions
or other things on the main application.  See :ref:`blueprints` for more
information.

.. versionadded:: 0.7

src/f/a/familytree-sample-app-HEAD/views/auth.py   familytree-sample-app(Download)
from flask import Blueprint, request, redirect, render_template, session, url_for, make_response
 
import json
import urllib
 
### Authentication via FamilyTree OAuth 2 ### 
 
auth = Blueprint('auth', __name__, template_folder='templates')
 
def authenticated():

src/f/a/familytree-sample-app-HEAD/views/profile.py   familytree-sample-app(Download)
from flask import Blueprint, request, redirect, render_template, session, jsonify, url_for
 
from views.auth import auth, authenticated
from models.user import *
from models.person import *
### Profile Page ### 
 
profile = Blueprint('profile', __name__, template_folder='templates')
 
@profile.route('/', defaults={'personID':None})

src/f/a/familytree-sample-app-HEAD/views/ancestors.py   familytree-sample-app(Download)
from flask import Blueprint, request, redirect, render_template, session, jsonify, url_for
 
from views.auth import auth, authenticated
from models.user import *
from models.person import *
### Ancestor Pages ### 
 
ancestors = Blueprint('ancestors', __name__, template_folder='templates')
 
@ancestors.route('/', defaults={'personID':None})

src/f/l/Flask-0.10.1/examples/blueprintexample/simple_page/simple_page.py   Flask(Download)
from flask import Blueprint, render_template, abort
from jinja2 import TemplateNotFound
 
simple_page = Blueprint('simple_page', __name__,
                        template_folder='templates')

src/f/l/flask-HEAD/examples/blueprintexample/simple_page/simple_page.py   flask(Download)
from flask import Blueprint, render_template, abort
from jinja2 import TemplateNotFound
 
simple_page = Blueprint('simple_page', __name__,
                        template_folder='templates')

src/f/l/Flask-Async-0.11-dev-20140215/examples/blueprintexample/simple_page/simple_page.py   Flask-Async(Download)
from flask import Blueprint, render_template, abort
from jinja2 import TemplateNotFound
 
simple_page = Blueprint('simple_page', __name__,
                        template_folder='templates')

src/f/l/flask-autodoc-HEAD/examples/factory/blog/frontend.py   flask-autodoc(Download)
from flask import current_app, Blueprint, render_template, redirect
from flask.ext.autodoc import Autodoc
from json import dumps
 
frontend = Blueprint('frontend', __name__, url_prefix='/blog')

src/f/l/flask-autodoc-HEAD/examples/factory/blog/doc.py   flask-autodoc(Download)
from flask import current_app, Blueprint, render_template
from flask.ext.autodoc import Autodoc
 
doc = Blueprint('doc', __name__, url_prefix='/doc')
auto = Autodoc()

src/f/l/flask-autodoc-HEAD/examples/factory/blog/admin.py   flask-autodoc(Download)
from flask import current_app, Blueprint, render_template
from flask.ext.autodoc import Autodoc
 
admin = Blueprint('admin', __name__, url_prefix='/admin')
from doc import auto

src/f/l/flask-empty-HEAD/examples/blog_example/blog/views.py   flask-empty(Download)
# -*- coding:utf-8 -*-
 
from flask import Blueprint, render_template, request
from models import Post
 
app = Blueprint('blog', __name__, template_folder='templates')

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next