On Fri, Dec 12, 2008 at 7:58 AM, Gael Pasgrimaud <[email protected]> wrote:
>
> Hi,
>
> I think that the only things needed is to have a valid entry point for
> each apps. in setup.py:
>
>    [paste.app_factory]
>    app1 = mycompany.app1.config.middleware:make_app
>    app2 = mycompany.app2.config.middleware:make_app
>
> Then edit your .ini file to something like:
>
>   [app:main]
>   use = Paste#urlmap
>   /app1 = app1
>   /app2 = app2
>
>   [app:app1]
>   use = MyCompany#app1
>   # conf for app1
>
>   [app:app2]
>   use = MyCompany#app2
>   # conf for app2

The default model is an empty stub that the rest of Pylons does not
depend on, so you can put it anywhere.  This is not true for templates
or controllers.  If you want to share those, you'll have to adjust the
paths in environment.py.

-- 
Mike Orr <[email protected]>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to