On Thursday 22 Sep 2005 10:55 pm, jocknerd wrote:
> 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?

this works - but you have to run django-admin.py sqlall, otherwise you 
wont get the additonal inserts/creates that django makes for every new 
table. Since every new table has 5 create/insert statements, it is 
fairly trivial to write them on ones one if one wants. I personaly just 
run sqlall and cut an paste the new code

-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Reply via email to