Pylons integration

0 views
Skip to first unread message

Gabriel Piassetta

unread,
Jun 18, 2010, 2:41:11 PM6/18/10
to rum-discuss
Hello,

I follow the documentation to deploy my rum application in pylons, but
now rum cant find css files, the app looks like plain-text.

rum-v0.3dev

Anyone know how to fix this?


Thanks in advance

Gabriel Piassetta

unread,
Jun 20, 2010, 12:34:08 PM6/20/10
to rum-discuss
i found a solution, from jj.galves here in the list.

"
OK I got it working! and its essentially a routes issue with pylons.
This is what I ended up with in my routes
map.connect('/admin', controller='admin')
map.connect('/admin/{url:.*}', controller='admin')

and then I changed the admin controller from whats in the demo to:

from pylons import g
from webob import Request

def AdminController(environ, start_response):
req = Request(environ).copy()
print req.path_info
if req.path_info == '/admin': # add the ending "/" if its left off
req.path_info = '/admin/'
req.path_info_pop() # remove admin prefix
print req.path_info
return g.admin_app(req.environ, start_response)
"



On Jun 18, 3:41 pm, Gabriel Piassetta <gabrielpiasse...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages