I upgraded to Python 1.4.5 and when I try to run my project here is the error:
ValueError: No such renderer factory .mak
[Applications/MAMP/htdocs/WhoAt/env/www/www/views/index/index.py line:32]
get()
->return self.render(mak)
[Applications/MAMP/htdocs/WhoAt/env/www/www/views/__init__.py line:231]
render()
->response = render_to_response(template, context, request=self.request)
[Applications/MAMP/htdocs/WhoAt/env/lib/python2.7/site-packages/pyramid/renderers.py line:138]
render_to_response()
->return helper.render_to_response(value, None, request=request)
ValueError: No such renderer factory .mak
I looked this up yesterday and learned that mako templates aren't supported by default anymore. And they have to be added back in: What's New In Pyramid 1.5
I followed the steps on that docs page, but am still getting the error :(
In the init.py
config.include('pyramid_mako') # < added that
config.add_static_view('static', 'static', cache_max_age=3600)
config.scan()
return config.make_wsgi_app()
And in the setup.py added 'pyramid_mako' and chameleon
requires = [
'pyramid',
'pyramid_mako',
'pyramid_chameleon',
'pyramid_debugtoolbar',
'waitress',
]
Also ran the setup.py in terminal :(
Has anyone else run into problems fixing mako templates in PyCharm?
A print list of my pip freeze: http://codepen.io/leongaban/pen/Bvakw/
Had to recreate my VirtualEnv and start fresh. Was able to fix the missing mak problem
Answer here What version of Pyramid do I have and what's the best way to update? by @madjar