Pylons to Pyramid Migration

107 views
Skip to first unread message

burgiduroy

unread,
Jul 18, 2012, 10:14:09 PM7/18/12
to pylons-...@googlegroups.com
Are there any pylons to pyramid migration guide. How can I do this smoothly. 
Our app got about 50 controllers. Is it possible to migrate by batch? 
I'm thinking about running parallel instances of pylons and pyramid on the same server, and just do a redirect from pylons to pyramid.
Is this idea doable or are there any better approach tho this.

Chris McDonough

unread,
Jul 18, 2012, 10:32:04 PM7/18/12
to pylons-...@googlegroups.com
Here's one strategy:

http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/porting/legacy.html

Here are some other suggestions:

http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/pylons/migrate.html


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

Jason

unread,
Jul 19, 2012, 9:19:38 AM7/19/12
to pylons-...@googlegroups.com
I would advise against the strategy of wrapping the Pylons application in a Pyramid view. I used to do this, but the dependencies in the python environment are now conflicting between Pylons and Pyramid. There are packages where the latest version of Pyramid requires a newer version than Pylons can use. One of the packages was WebOb, but I think there were other packages as well.

I currently have NginX in front of Pyramid and Pylons applications (running in Paste) and it decides based on the first path segment whether to go to the legacy app or the new pyramid application. This seems to be the easiest method for porting controllers one at a time.

 -- Jason

Reply all
Reply to author
Forward
0 new messages