Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7640433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:40:11+00:00 2026-05-31T08:40:11+00:00

I changed a lot in my models.py , including deleting a lot of fields,

  • 0

I changed a lot in my models.py, including deleting a lot of fields, and renaming a couple of classes. schemamigration --auto worked fine, but trying migrate threw a bunch of errors.

All my code is currently in development so I don’t mind too much losing the data. So I want South to “unconvert” or “unmanage” an app so I can rebuild all the tables with syncdb again.

Or I could delete all migration list and do schemamigration --initial again.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:40:13+00:00Added an answer on May 31, 2026 at 8:40 am

    Yes, just delete the migrations and run schemamigration --initial again. You should do that anyways as normal course before moving to production. If you’ve already gone to production at least once, don’t delete all the migrations — just the ones you’ve created in the current development cycle and then run schemamigration --auto to get just one migration instead of the potential multiple ones.

    FWIW, to “unconvert” an app using South, you merely delete the “migrations” directory, but in this scenario, there’s no need.

    UPDATE

    It was pointed out that if you have already migrated your app, and you delete all the migrations and generate a single new one, South will complain about migrations still in the database. The actual process you should follow is:

    1. Rollback to the just before the newest migration you created in the current development cycle. For instance, if you were already at 0005 and you created three new migrations for the development work you were doing (now at 0008), you would rollback to 0005. If all of the migrations are new, you rollback to zero:

      python manage.py migrate yourapp zero
      
    2. Delete all of the migrations you’re going to merge. In the above example, that would be 0006, 0007, and 0008, or for a new app, everything in the migrations directory but __init__.py.

    3. Generate a new migration to cover the ones you just deleted. If it’s a new app, use --initial, or if it was a pre-existing app, use --auto.

      python manage.py schemamigration --initial yourapp
      
    4. Migrate

      python manage.py migrate yourapp
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have changed a lot of things in a java code but now I
I've been trying to learn to work with Models and Stores. But the proxy
UPDATE: Facebook's API has changed a lot since this question was posted. This question
My class contains LOT_SIZE constant which can not be changed. But I can initialize
I have a single view that handles a lot of Models of type VoyagesViewModel,
DB Designer had a lot of bugs but one outstanding feature was that database
First off, I've done a lot of research on the web (including this site)
This is kind of evolution of my previous question (although I changed a lot,
I am trying to set up a model with a lot of hasMany/hasOne relationships,
Hopefully this will be simple. But I've hunted for a couple hours now and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.