Thursday, February 2, 2012

Re: south create_table doesn't work

Nobody who has experience with south?

On Feb 2, 5:14 pm, Alessandro Candini <cand...@meeo.it> wrote:
> I'm trying to use django-south-0.7.3 API's to create a table, following
> this:http://south.aeracode.org/docs/databaseapi.html#accessing-the-api
>
> This is my code:
> from south.db import dbs
> dbs['lc'].create_table('test', [
>              ('id', models.AutoField(primary_key=True)),
>              ('name', models.CharField(max_length=255)),
>          ])
>
> The problem is that I do not get any error, but in the lc database, no
> table appears.
> Where is the issue?
>
> Thanks in advance

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment