south create_table doesn't work

13 views
Skip to first unread message

Alessandro Candini

unread,
Feb 2, 2012, 11:14:06 AM2/2/12
to django...@googlegroups.com
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

Alessandro Candini

unread,
Feb 3, 2012, 2:49:04 AM2/3/12
to Django users
Nobody who has experience with south?

Anoop Thomas Mathew

unread,
Feb 3, 2012, 3:00:23 AM2/3/12
to django...@googlegroups.com
Hi,

May be you are asking at the wrong place. Please check it in south mailing list history, you should be able to find an answer.
http://groups.google.com/group/south-users/search?group=south-users&q=create_table&qt_g=Search+this+group

Thanks,
Anoop
atm
___
Life is short, Live it hard.




--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


Reply all
Reply to author
Forward
0 new messages