I really thought setting this up would be quicker and easier than it is. It seems every step of the way I am having issues. I was going to sit down and continue working on the tutorial Monday but ended up finding the main page of my site was getting a 404 error. I must have broke it when I enabled the fast CGI and not had a view created for the main page. I ended up searching for a way to fix that with a static page and didn't come up with a working solution. I renamed index.fcgi so I had some content up. On Tuesday I decided that I would venture on with the tutorial and that with more understanding I would be able to fix it. Nothing lost, the purpose of the site is learning. Please don't think I am complaining because I am not. I believe I am learning more from having to do some of this troubleshooting.
I am basically working my way through page two now and everything seems straight forward but..... I keep having an issue where my changes are not showing up in the browser. I edit the admin.py file and I am not seeing the expected changes on the web. I don't think I have to update the database but I run python manage.py syncdb just in case. Same thing. I do some more searching for a solution and come up empty. I refresh the page using CTRL-F5 and the changes appear. Cool, just cached. I can deal with that. I make some more changes and have the same problem. I do a CTRL-F5 and the content stays the same. Why aren't my settings.py or admin.py changes not taking effect? UGH!
I ended up doing more searching and found a Stackoverflow Post that had the same issue. It was suggested to run the command: touch index.fcgi
That didn't work but the the following command has every time so far:
killall -USR1 index.fcgi
I think the process either hangs up or isn't seeing the updates and needs to be restarted. Hopefully this solution will keep working, it was getting frustrating working through the tutorial and having to wait for the changes to take effect.
The rest of tutorial 3 went well. The one minor issues was I copied over the templates from the Django install into a directory called mytemplates when it should have been in mytemplates/admin. I will continue on with the rest of the tutorial and post any other issues.
No comments:
Post a Comment