Maybe there is some subtle difference between your source and
ours that is not obvious?
Archive your source code, and put it somewhere to download and
share the link.
I'd also suggest deleting your source, and using the source from:
https://github.com/Pylons/pyramid/tree/1.7-branch/docs/quick_tutorial/request_response
Here's my `pip freeze` for comparison.
$ bin/pip freeze
Mako==1.0.4
MarkupSafe==0.23
PasteDeploy==1.5.2
Pygments==2.1.3
pyramid==1.7.3
pyramid-debugtoolbar==3.0.4
pyramid-mako==1.0.2
repoze.lru==0.6
translationstring==1.3
-e
git+https://github.com/Pylons/pyramid.git@2414d270c56b06d60b16cd38967559c5a47766b7#egg=tutorial&subdirectory=qtut/request_response
venusian==1.0
WebOb==1.6.2
zope.deprecation==4.1.2
zope.interface==4.3.2
And you've already run the tests, which passed, exactly like in
the docs for this tutorial step.
I'm at a total loss as to why your source code won't redirect
like mine, so I'm just tossing up random things at this point.
I hope someone smarter than I can help. :/
--steve
On 10/29/16 at 5:26 AM, [email protected] (Rado
Duoistin) pronounced:
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
------------------------
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/r471Ps-1085i-70FC576BB4E44CE8ABE370E12DD15977%40stevepi-mbp.local.
For more options, visit https://groups.google.com/d/optout.