I put my first Django site online eight months ago. It was both a proof of concept as well as my first experience with Django. Fast forward eight months, I have validated my idea, but since it was a proof of concept and my first Django project, the code is pretty messy. Essentially, I am going to be re-writing the majority of the site, including re-engineering the models.
This is all fine and good. I have all my new models planned out. Essentially, I am going to create a new database to develop off of and let South manage any new database schema changes I make.
It is important to note two things:
- I will not be creating a new project, just a new database.
- This will be the first time I am incorporating South into the project and I would prefer to start with fresh models and a fresh database.
My question is, when I create the new database, will importing the contents of the old auth_* and django_* tables into the new auth_* and django_* tables create any problems? I have had some users register using the original proof of concept and I don’t want to lose their information. I’ve never had to do this before so I’m not sure if there will be any repercussions.
If you use sql dump, such as
The database’s side is fine,if your backend is some other db,you can still find the similar commands.
For a new db, i think you need to export/import auth_user, i’m not quite sure if you need other contents in django_* tables. You can do this step by step, and see whether the new project works.