Should have mentioned i was using the example code. In wiki.py the app.redirect rule is what caused this problem but it seems to have affected my flask installation. I uninstalled flask and tried changing the line but nothing seems to be working.
When you get redirected to http://127.0.0.1:5000/HomePage, do you get a 404 error from the app you're trying to run, or do you see the wiki example homepage? If you see the latter, it probably means you still have the wiki example app running somewhere -- check your terminal windows to see if it's still running, and if that fails, run ps aux | grep wiki.py | grep -v grep (assuming you're on OS X, Linux, or similar -- I don't know how to do the equivalent on Windows) -- if you see any output from that command, then it's running somewhere and you have to kill it (kill -INT <pid> where <pid> is the value of the second column of output should do the trick)
I'm getting a 404 error. That command didn't have any output. The process isn't running anymore i'm sure of that. I just don't understand what to do about this problem. It's really frustrating. I've restarted my computer since then so even if it was still running it's definitely not now. What is the purpose of the re-direct rule? Why is it applying itself permanently to other flask apps?