Search This Blog

Monday, September 21, 2009

Django, Create Your Model

python startapp my_model

python sql my_model
(check the actual sql statements)

python syncdb
(really create the database)

python shell
i = idea(title="Butterfly", description="sell butterfly", author="Jie",

To use your model in and, just import your model class from your model.

No comments: