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

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/y/pyramid-examples-HEAD/board/board/tests.py   pyramid-examples(Download)
from sqlalchemy import create_engine
 
from board.models import db, Post, initialize_sql
 
 
initialize_sql(create_engine('sqlite://'))

src/p/y/pyramid-examples-HEAD/board/board/__init__.py   pyramid-examples(Download)
from pyramid_beaker import set_cache_regions_from_settings
 
from board.models import initialize_sql
from board import views
 
 
def main(global_config, **settings):
    'Return a Pyramid WSGI application'
    # Connect to database
    initialize_sql(engine_from_config(settings, 'sqlalchemy.'))