Skip to content
Browse files

fix for use under venusian 1.0a4

  • Loading branch information...
1 parent 29fe627 commit bc04648671fc9ce7677ceb44f2b1cbb3dbd41df3 @mcdonc mcdonc committed Apr 17, 2012
View
2 pyramid_jqm/scaffolds/jqm_starter/+package+/__init__.py_tmpl
@@ -1,10 +1,12 @@
from pyramid.config import Configurator
+from {{package}}.views import www
def main(global_config, **settings):
""" This function returns a Pyramid WSGI application.
"""
config = Configurator(settings=settings)
config.add_route('languages', '/language/{name}')
+ config.add_view(www, context='pyramid.httpexceptions.HTTPNotFound')
config.scan('{{package}}')
return config.make_wsgi_app()
View
1 pyramid_jqm/scaffolds/jqm_starter/+package+/views.py_tmpl
@@ -9,7 +9,6 @@ from pyramid.view import view_config
# www is a view for static files; it will be found when all other
# views fail to be found (it's a NotFound view)
www = static_view('{{package}}:static', cache_max_age=86400)
-www = view_config(context='pyramid.exceptions.NotFound')(www)
cache_one_hour = 3600
cache_one_day = 86400

0 comments on commit bc04648

Please sign in to comment.
Something went wrong with that request. Please try again.