Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: b479fd028c
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (18 sloc) 0.836 kB
from pyramid.response import Response
from pyramid.view import view_config
from sqlalchemy.exc import DBAPIError
@view_config(route_name='home', renderer='templates/')
def my_view(request):
return {'one':1, 'project':'zookeepr'}
conn_err_msg = """\
Pyramid is having a problem using your SQL database. The problem
might be caused by one of the following things:
1. You may need to run the "initialize_MyPyramid_db" script
to initialize your database tables. Check your virtual
environment's "bin" directory for this script and try to run it.
2. Your database server may not be running. Check that the
database server referred to by the "sqlalchemy.url" setting in
your "development.ini" file is running.
After you fix the problem, please restart the Pyramid application to
try it again.
Jump to Line
Something went wrong with that request. Please try again.