Hi, I know that every time I make a change to my Django model, I have to delete my database and create a new one before running manage.py syncdb. I was going to release my app soon and was wondering how I could go about making changes to my database once I release it. Thanks. asked 11 Aug '11, 01:41 iman453 |
There is basically 2 things I do to solve this, Install south, http://south.aeracode.org/ Or, basically a juggle between dev and live databases and sites where I will manually integrate the data from the old DB to the new ones schema, this process I reserve for older sites that I have no other choice in the matter and upgrade to south ASAP. answered 11 Aug '11, 02:02 johns I might add that in the case of the manual route the manage.py sql* commands are very useful, https://docs.djangoproject.com/en/dev/ref/django-admin/#sql-appname-appname
(11 Aug '11, 02:05)
johns
Thank you for your answer :) I will check this out.
(15 Aug '11, 23:43)
iman453
Hey, I installed South and tried running the 'python2.7 manage.py convert_to_south appname' command...but it gives me the error 'There is no enabled application matching 'appname''. I was wondering what could be wrong?
(22 Aug '11, 22:43)
iman453
Does the Django App in question exist? Note that this is a "Django App", not a webfaction app directory (
(22 Aug '11, 22:49)
ryans ♦♦
Ah, I had two apps within my 'major app'...had forgotten that's how I had built them. My bad. Thanks for your time :)
(22 Aug '11, 22:55)
iman453
|