On Mar 7, 11:22 pm, "Ksenia" <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> I have two very simple test applications: myapp1 and myapp2. I am
> trying to "mount" myapp2 in development.ini of myapp1. I ended up with
> this configuration:
>
> [DEFAULT]
> debug = true
> email_to = [EMAIL PROTECTED]
> smtp_server = localhost
> error_email_from = [EMAIL PROTECTED]
>
> [server:main]
> use = egg:Paste#http
> host = 0.0.0.0
> port = 5000
>
> [composite:main]
> use = egg:Paste#urlmap
> / = myapp1
> /myapp2 = myapp2
>
> [app:myapp2]
> use = egg:myapp2
> cache_dir = %(here)s/data
> session_key = myapp2
> session_secret = somesecret
>
> [app:myapp1]
> use = egg:myapp1
> cache_dir = %(here)s/data
> session_key = myapp1
> session_secret = somesecret
>
> The routing.py of myapp1 is:
> map.connect('error/:action/:id', controller='error')
> map.connect('', controller='main', action='index')
> map.connect(':controller/:action/:id')
> map.connect('*url', controller='template', action='view')
>
> The routing.py of myapp2 is the same. Both apps have testcontroller
> "main.py" with method "index".
>
> After starting myapp1:
> -http://127.0.0.1:5000/works
> -http://127.0.0.1:5000/myapp2/causes redirection loop to the same
> url.
> -http://127.0.0.1:5000/myapp2/main/works
> -http://127.0.0.1:5000/myapp2/main/indexworks
>
> Is this the right way to configure the second application? Is there a
> way to debug the redirection loop, or maybe somebody already knows
> what causes it?
>
> Thanks in advance,
> Ksenia.
Solved by upgrading to the trunk version of Paste + changing
"cache_dir" of each application to be unique.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---