oops.  typo fix:

conflict by `config.add_static_view('photos', settings['photos_dir'], 
cache_max_age=3600)`

change static view name will resolved,

 `config.add_static_view('photos_static', settings['photos_dir'], 
cache_max_age=3600)`   

--  
Best Regards,
Eric Lo
https://lxneng.com (http://lxneng.com/)


On Thursday, 22 September 2016 at 10:51 AM, Eric Lo wrote:

> Thanks Michael and Mikko.  
>  
> resolved, that conflict by `config.add_static_view('photos_static', 
> settings['photos_dir'], cache_max_age=3600)`
>  
>  
>  
> --  
> Best Regards,
> Eric Lo
> https://lxneng.com (http://lxneng.com/)
>  
>  
> On Thursday, 22 September 2016 at 10:31 AM, Eric Lo wrote:
>  
> > but when i change to `config.add_route('all_photos', '/photos-all’)`, it 
> > works.  
> >  
> > --  
> > Best Regards,
> > Eric Lo
> > https://lxneng.com (http://lxneng.com/)
> >  
> >  
> > On Thursday, 22 September 2016 at 3:41 AM, Mikko Ohtamaa wrote:
> >  
> > >  
> > >  
> > > >  
> > > > open http://localhost:6543/photos/all got 404 resource not found error.
> > > >  
> > > >  
> > >  
> > >  
> > > You can also get 404 in the case you have are rendering a template and 
> > > the template cannot be found on file system.
> > > --  
> > > Mikko Ohtamaa
> > > http://opensourcehacker.com
> > > http://twitter.com/moo9000
> > >  
> > > --  
> > > 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 
> > > (mailto:pylons-discuss+unsubscr...@googlegroups.com).
> > > To post to this group, send email to pylons-discuss@googlegroups.com 
> > > (mailto:pylons-discuss@googlegroups.com).
> > > To view this discussion on the web visit 
> > > https://groups.google.com/d/msgid/pylons-discuss/CAK8RCUvHZLyp5DN%2B%2B%3D8WOFpYq%3DUoiUc8ZEAeXcnhK4EOFpVQXA%40mail.gmail.com
> > >  
> > > (https://groups.google.com/d/msgid/pylons-discuss/CAK8RCUvHZLyp5DN%2B%2B%3D8WOFpYq%3DUoiUc8ZEAeXcnhK4EOFpVQXA%40mail.gmail.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/34A6F7378E5B4CABBD8A37344D85AB17%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to