There are several reasons you can get a 404. Have you tried enabling
notfound debugging[1] or using the pviews command-line to see what you get?
You can also enable route match debugging explicitly to see if it's an
issue with routes, but likely it's not anything to do with the code you've
pasted.

[1]
http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html#debugging-not-found-errors

On Wed, Sep 21, 2016 at 10:56 AM, lxneng <lxn...@gmail.com> wrote:

> Hi,
>
>
> after upgrade to pyramid 1.7.3, these route will conflict:
>
> # photos
> config.add_route('photos', '/photos')
> config.add_route('all_photos', '/photos/all')
> config.add_route('all_photos_pagination', '/photos/all/{page:\d+}')
> config.add_route('photos_album', '/photos/albums/{id:\d+}',
>                  factory=factories.AlbumFactory)
> config.add_route('photos_album_new', '/photos/albums/new')
> config.add_route('photos_album_edit', '/photos/albums/{id:\d+}/edit',
>                  factory=factories.AlbumFactory)
> config.add_route(
>     'photos_album_upload', '/photos/albums/{id:\d+}/upload',
>     factory=factories.AlbumFactory)
>
> open http://localhost:6543/photos/all got 404 resource not found error.
>
> envs:
>
> python = 3.5.1
> pyramid = 1.7.3
>
> --
> 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 pylons-discuss+unsubscr...@googlegroups.com.
> To post to this group, send email to pylons-discuss@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/pylons-discuss/10740ccc-ae03-42ad-959a-f7b4b6c80c1d%
> 40googlegroups.com
> <https://groups.google.com/d/msgid/pylons-discuss/10740ccc-ae03-42ad-959a-f7b4b6c80c1d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/CAKdhhwGkwhKg0cuOBEQFpz_C4gVpAF_iyeCPFaq8QYttjfdb%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to