Hm... Delete home.pt, delete pycache. Restarting pserve.
But 302 is not working. ~/projects/quick_tutorial/request_response$ $VENV/bin/pserve development.ini --reload Starting subprocess with file monitor Starting server in PID 15093. Starting HTTP server on http://0.0.0.0:6543 127.0.0.1 - - [29/Oct/2016 13:10:45] "GET /plain HTTP/1.1" 404 546 127.0.0.1 - - [29/Oct/2016 13:10:49] "GET / HTTP/1.1" 200 525 пятница, 28 октября 2016 г., 13:09:29 UTC+3 пользователь Steve Piercy написал: > > On 10/28/16 at 2:53 AM, [email protected] <javascript:> (Rado > Duoistin) pronounced: > > > > Starting server in PID 67282. > > > Starting HTTP server on http://0.0.0.0:6543 > > > 127.0.0.1 - - [28/Oct/2016 00:35:01] "GET / HTTP/1.1" 302 548 > > > 127.0.0.1 - - [28/Oct/2016 00:35:01] "GET /plain HTTP/1.1" 200 57 > > > > > > Note that you should have a 302 redirect from `/` to the 200 `/plain`. > > > > > > > Shouldn't I have 200? > > For `/plain`, yes. For `/`, it should be a 302 redirect, which takes you > to `/plain`. > > > Finally, compare your source files against ours: > > > > > > > https://github.com/Pylons/pyramid/tree/1.7-branch/docs/quick_tutorial/request_response > > > > > > > > I compared with git. > > I have a directory tutorial.egg-info and directory > tutorial/__pycache__, > > also file tutorial/home.pt > > The egg is normal and the result of doing `pip install -e .`. > > I don't have a `tutorial/home.pt`. Delete that file. > > I don't have a pycache. Delete that file, then try restarting pserve. > > --steve > > ------------------------ > Steve Piercy, Soquel, CA > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/eadfd5cf-99f1-47b6-9853-ca0faa6bed48%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
