Re: Add field in models django 0.96

2007-09-29 Thread Xan
Hi, It worked but I HAVE A PROBLEM: After done it, the database have strange caracters: it displays "Convocatòria" instead of "Convocatòria" I presume that it's an encoding problem. How can I solve that? Please, anwer me Xan. On Sep 26, 11:33 pm, DJango Fett <[EMAIL PROTECTED]> wrote: > Here a

Re: Add field in models django 0.96

2007-09-28 Thread Xan
Sorry so, I will try it. Thank you very much for your support, Xan. On Sep 28, 2:48 pm, DJango Fett <[EMAIL PROTECTED]> wrote: > I am using 0.96 version too. I tested the steps I provided before I > posted. Check out the 0.96 documentation yourself about the loaddata > option:http://www.django

Re: Add field in models django 0.96

2007-09-28 Thread DJango Fett
I am using 0.96 version too. I tested the steps I provided before I posted. Check out the 0.96 documentation yourself about the loaddata option: http://www.djangoproject.com/documentation/0.96/django-admin/#loaddata-fixture-fixture On Sep 27, 11:20 am, Xan <[EMAIL PROTECTED]> wrote: > On Sep 2

Re: Add field in models django 0.96

2007-09-27 Thread Xan
On Sep 26, 11:33 pm, DJango Fett <[EMAIL PROTECTED]> wrote: > Here are the steps I would use to add a field to an existing model > without having to write your own SQL and without the risk of getting > your model code out of sync with your database table. This code uses > the same objects in th

Re: Add field in models django 0.96

2007-09-26 Thread DJango Fett
Here are the steps I would use to add a field to an existing model without having to write your own SQL and without the risk of getting your model code out of sync with your database table. This code uses the same objects in the Tutorial on http://www.djangoproject.com/documentation/0.96/tutoria

Re: Add field in models django 0.96

2007-09-26 Thread Derek Anderson
if you want any help, feel free to pm me. Xan wrote: > Thanks, what the equivalent in mysql? > > Meanwhile, I think I will try patch to 0.96 found in > http://code.djangoproject.com/wiki/SchemaEvolutionDocumentation > > Thanks another time, > Xan. > > > On Sep 26, 12:27 am, Joe <[EMAIL PROTEC

Re: Add field in models django 0.96

2007-09-26 Thread Xan
Thanks, what the equivalent in mysql? Meanwhile, I think I will try patch to 0.96 found in http://code.djangoproject.com/wiki/SchemaEvolutionDocumentation Thanks another time, Xan. On Sep 26, 12:27 am, Joe <[EMAIL PROTECTED]> wrote: > The easiest way to to this is look at the create table SQL

Re: Add field in models django 0.96

2007-09-25 Thread Joe
The easiest way to to this is look at the create table SQL generated by the manager. python manage.py --settings=my_settings sql my_app Then, run the appropriate query once you know the datatype created when you added the column. For example, in postgres: ALTER TABLE myapp_mymodel ADD COLUMN m

Re: Add field in models django 0.96

2007-09-25 Thread Richard Dahl
Xan, as far as the sql code, it depends on what backend db you are using. Perhaps I am behind the times, but what differences are there in the 0.96models to the latest svn trunk? I am currently developing an app that I began pre - 96 and do not recall having to modify the models as I updated, I st

Add field in models django 0.96

2007-09-25 Thread Xan
Hi, I use django 0.96. I have a simple model and I just want to add one field to my existing model. How can I do that? I think that I can't do that without SQL code. But unfortunely I don't know it. Anyone could give me a example of SQL code for adding one field to one model? If I only have the