I've never used Pylons before and I'm jumping straight into Pyramid.
So far so good.

I'm having trouble using static_url, though I'm probably using it in a
way it's not designed for.

_init_.py:
...
    config.add_static_view('static', 'house2:static')
...


views.py:
...
try:
        f = static_url('house2:static/pylons.css', request)
        t = open(f,'r')
...

I'm sure this file exists, but I get:
 IOError: [Errno 2] No such file or directory: 'http://127.0.0.1:6543/
static/pylons.css'

I just want to test to see if a file exists or not. What is the best
way to do this?

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to