Hi,

It seemed that your db is not created, try to use

python manage.py syncdb

to create the database.

manage.py sql would only print the statements which would be used to created 
the database:

-----------------------------------------------------------------------
[^_^:~/msgcenter-django/msgcenter]python manage.py help sql
Usage: manage.py sql [options] <appname appname ...>

Prints the CREATE TABLE SQL statements for the given app name(s).
-----------------------------------------------------------------------


------------------------
Xia Kai(夏恺)
xia...@gmail.com
http://blog.xiaket.org

--------------------------------------------------
From: "chen gang" <gang.c...@nokia.com>
Sent: Friday, December 25, 2009 10:02 AM
To: <django-users@googlegroups.com>
Subject: about django model save

> Hi,
> I am really new to this tool... and need you help about this issue,
> thanks in advance!
>
> I create models.py like this,
>
> ...
> class Sms_detailed(models.Model):
>    group = models.CharField(max_length=15)
>    phone_num = models.CharField(max_length=15)
>    IMEI      = models.CharField(max_length=15)
>    sw_ver    = models.CharField(max_length=20)
>    project   = models.CharField(max_length=10)
>    sw_checksum = models.CharField(max_length=10)
>    recv_date_time = models.DateTimeField()
>    raw_data = models.CharField(max_length=30)  # raw reset data
> ...
>
> Then create the db
> [gac...@pipi autosms]$ python manage.py sql asms
> 

--

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


Reply via email to