Hello.

I have

routes_in = (
    ('/admin/$anything', '/admin/$anything'),
    ('(?P<anything>.*)/appadmin/(?P<anything2>.*)', 
'\g<anything>/appadmin/\g<anything2>'),
    ('.*://.*mydomain.com:.* /$anything', '/welcome/$anything'),
)
routes_out = (
    ('(?P<anything>.*)/admin/(?P<anything2>.*)', 
'\g<anything>/admin/\g<anything2>'),
    ('(?P<anything>.*)/appadmin/(?P<anything2>.*)', 
'\g<anything>/appadmin/\g<anything2>'),
    ('/$app/$anything', '/$anything'),
)

It works fine with 1.99.7. But with 2.2.1 it always rises "Invalid request"

If i add:
default_application = "welcome"
default_controller = "default"
default_function = "index"
And replace "('.*://.*mydomain.com:.* /$anything', '/welcome/$anything')" 
with "('.*://.*mydomain.com:.* /$anything', 
'/my_not_welcome_app/$anything')"
I'll see welcome app if i go to mydomain.com
But without some static files (no js,css,images will be loaded)


суббота, 13 октября 2012 г., 6:50:31 UTC+5 пользователь Massimo Di Pierro 
написал:
>
> Strange. We have unitests for them and they all pass. Can I see your 
> routes.py?
>
> On Friday, 12 October 2012 17:54:08 UTC-5, Vasile Ermicioi wrote:
>>
>> hi,
>> I put my apps and routes.py in a new folder web2py  2.0.9 and all my 
>> websites are pointed to init app
>> and I downgraded back to 1.99.4
>>
>

-- 



Reply via email to