What's the easiest way to add a table to an existing database.  I'm
currently destroying the database and recreating it but this will be a
problem once I've got real data. I was thinking about doing this:

Make the change to the model and then run django-admin.py sql
myproject.  I'm using PostgreSQL so I type psql databasename and then
create the new table with the sql code for the new table that was
generated previously.  Then I restart the django server.

Would that work?  Is there an easier way?


I really like how Ruby on Rails does it.  You add the table to the
database and its automatically added to your website.

Reply via email to