Re: New field in django
Hi
try this ./manage.py convert_to_south myapp # if your app exist
Cheer,
On Sun, Sep 8, 2013 at 11:29 PM, Xavier Ordoquy <xordoquy@linovia.com> wrote:
Hi,
The message is: "Table 'tcc_report' already exists"
This means that you already created the tables with syncdb which bypassed south and you're trying to created them again with south.
You'll be able to recover from this by:
- ensuring your models are in line with your current DB schema
- creating an initial migration (provided that you didn't already create migrations)
- fake the initial migration to tell south you already created the schema for this application
Then you can change your models, create schema or data migrations and apply them.
For more information, have a look at http://south.readthedocs.org/en/latest/convertinganapp.html#converting-other-installations-and-servers
Regards,
Xavier.
Le 9 sept. 2013 à 05:51, Harjot Mann <harjotmann1992@gmail.com> a écrit :
> On Mon, Sep 9, 2013 at 3:46 AM, Roberto López López
> <roberto.lopez@uni.no> wrote:
>> You have to fake the migration.
>
>
> Didn't get you. Please elaborate.
>
> --
> Harjot Kaur Mann
> Blog: http://harjotmann.wordpress.com/
> Daily Dairy: http://harjotmann.wordpress.com/daily-diary/
>
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home