If I add a new language, how can I tell django-easymode to add columns for that language? Thanks in advance, best regards. -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi
You should use a database migration tool like south: http://south.aeracode.org/ After you added a language you can just create a new database migration using manage.py schemamigration --auto <appname> This will create the migration that will add the new columns. Next you should run manage.py migrate And the columns will be added to the database. On 1 okt 2010, at 11:52, Alessandro Ronchi wrote: > If I add a new language, how can I tell django-easymode to add columns for that language? > > Thanks in advance, best regards. > > -- > Alessandro Ronchi > http://www.soasi.com > > Hobby & Giochi > http://hobbygiochi.com > http://www.facebook.com/hobbygiochi
On Fri, Oct 1, 2010 at 1:32 PM, Lars van de Kerkhof < specialunderwear@gmail.com> wrote: > > http://south.aeracode.org/ > > After you added a language you can just create a new database migration > using > > manage.py schemamigration --auto <appname> > > This will create the migration that will add the new columns. > > Next you should run > > manage.py migrate > > And the columns will be added to the database. > I already use migration. it's a good news. Another question: using south is there a signal I can catch to execute a custom python method I've made for create full text indexes on translated fields? -- Alessandro Ronchi http://www.soasi.com Hobby & Giochi http://hobbygiochi.com http://www.facebook.com/hobbygiochi
I am not aware of any such hooks, please refer to the south documentation for that. On 1 okt 2010, at 13:43, Alessandro Ronchi wrote: > > > On Fri, Oct 1, 2010 at 1:32 PM, Lars van de Kerkhof <specialunderwear@gmail.com> wrote: > > http://south.aeracode.org/ > > After you added a language you can just create a new database migration using > > manage.py schemamigration --auto <appname> > > This will create the migration that will add the new columns. > > Next you should run > > manage.py migrate > > And the columns will be added to the database. > > I already use migration. it's a good news. > > Another question: using south is there a signal I can catch to execute a custom python method I've made for create full text indexes on translated fields? > > > > -- > Alessandro Ronchi > http://www.soasi.com > > Hobby & Giochi > http://hobbygiochi.com > http://www.facebook.com/hobbygiochi PermanentMarkers kvk 09170823 tel 026-3704887 mob 06-24352007 specialunderwear@gmail.com lars@permanentmarkers.nl