Reputation: 857
My pyramid app is not reloading when I update and save my *.mak in templates or *.py in views. I am using the following command to serve the site and have to manually kill the process and restart before the changes appear
pserve --reload development.ini
I have the following in my development.ini
as well
pyramid.reload_templates = true
I created the app with the alchemy scaffolding
virtualenv --no-site-packages app
cd app
source bin/activate
which python
pcreate -s alchemy app
python setup.py develop
note: which python
showed that it's pointing to the virtualenv's copy
I hardly make any major changes to any settings...
I am not sure what information I can provide that might be helpful but please leave a comment to let me know what else I can provide. Thanks
Upvotes: 1
Views: 989
Reputation: 1382
There is an open bug in pyramid_mako, which causes that Pyramid doesn't reload templates. Downgrade your pyramid_mako to 0.3.1 version, i.e. point exact version in setup.py
:
requires = [
'pyramid',
'pyramid_mako==0.3.1',
'pyramid_debugtoolbar',
'pyramid_tm',
'SQLAlchemy',
'transaction',
'zope.sqlalchemy',
'waitress',
]
As for changes in *.py, there is a solution in comments of your question.
Upvotes: 1