Re: any recipes for 'live' updating a site with model changes
On 07/27/2011 11:26 AM, bruno desthuilliers wrote: > > > On Jul 27, 10:04 am, Uros Trebecwrote: >> Hi, >> >> for your DB migration problem you should take a look at South[0]. > > +1 > > I've just started using it and wonder why I spent so much time doing > things the painfull and error-prone manual way... > >> As for your 'under maintenance' step you will have to do that manually > > Here are two examples of doing it using apache rewrite rules - > possibly the most common solution, which I also used on most projects > (whether PHP, Django, Zope or whatever) so far: > > http://garthhumphreys.com/2011/06/11/painless-django-maintenance-mode-with-fabric/ > http://zebert.blogspot.com/2007/12/maintenance-mode-for-apache.html > > For a latest Django project I use a in-house fork of django- > maintenance-mode. It still have a few quirks I hope to fix soon so we > can publish it. > Thanks. Will look into the rewrite rules. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: any recipes for 'live' updating a site with model changes
Thanks a lot everybody. Will look into south.. On 07/27/2011 10:04 AM, Uros Trebec wrote: > Hi, > > for your DB migration problem you should take a look at South[0]. > As for your 'under maintenance' step you will have to do that manually > or use some kind of a tool to automate it, as well as other steps for > the upgrade. There are many such tools, Fabric[1] and Chef[2] being > two of the most popular. > > [0] http://south.aeracode.org/docs/ > [1] http://docs.fabfile.org/en/1.2.0/index.html > [2] http://www.opscode.com/chef/ > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: any recipes for 'live' updating a site with model changes
On Jul 27, 10:04 am, Uros Trebecwrote: > Hi, > > for your DB migration problem you should take a look at South[0]. +1 I've just started using it and wonder why I spent so much time doing things the painfull and error-prone manual way... > As for your 'under maintenance' step you will have to do that manually Here are two examples of doing it using apache rewrite rules - possibly the most common solution, which I also used on most projects (whether PHP, Django, Zope or whatever) so far: http://garthhumphreys.com/2011/06/11/painless-django-maintenance-mode-with-fabric/ http://zebert.blogspot.com/2007/12/maintenance-mode-for-apache.html For a latest Django project I use a in-house fork of django- maintenance-mode. It still have a few quirks I hope to fix soon so we can publish it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: any recipes for 'live' updating a site with model changes
Hi, for your DB migration problem you should take a look at South[0]. As for your 'under maintenance' step you will have to do that manually or use some kind of a tool to automate it, as well as other steps for the upgrade. There are many such tools, Fabric[1] and Chef[2] being two of the most popular. [0] http://south.aeracode.org/docs/ [1] http://docs.fabfile.org/en/1.2.0/index.html [2] http://www.opscode.com/chef/ Good luck, Uros On Jul 27, 12:04 am, Gelonida Nwrote: > Hi, > > Let's imagine I have a web server running with a Django application. > > Now I want to install an update (with a modified model) > > Is there any recommended way to upgrade such a server? > Are there any tools helping with such upgrades or with creating upgrade > scripts? > > If I had to do it 'manually' this is roughly what I'd do: > - reconfigure the web server to redirect to an 'under maintenance' site > - Before unistalling any new code: > dump all tables > - install the new version > - start an upgrade function, which deletes all tables and repopulates > them from the dumps with some potential conversions. > > Thanks in advance for suggestions or examples of projects which handle > updates more or less on the fly. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Aw: Re: any recipes for 'live' updating a site with model changes
I will publish a new app to maintain models dynamically at runtime on the weekend -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/eWnQvLa89CYJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: any recipes for 'live' updating a site with model changes
Just use South. That's exactly what it was made for. http://south.aeracode.org/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
any recipes for 'live' updating a site with model changes
Hi, Let's imagine I have a web server running with a Django application. Now I want to install an update (with a modified model) Is there any recommended way to upgrade such a server? Are there any tools helping with such upgrades or with creating upgrade scripts? If I had to do it 'manually' this is roughly what I'd do: - reconfigure the web server to redirect to an 'under maintenance' site - Before unistalling any new code: dump all tables - install the new version - start an upgrade function, which deletes all tables and repopulates them from the dumps with some potential conversions. Thanks in advance for suggestions or examples of projects which handle updates more or less on the fly. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.