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 9199623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:34:33+00:00 2026-06-17T22:34:33+00:00

python manage.py migrate page –list page (*) 0001_initial (*) migrations from 0002 to 0006

  • 0
python manage.py migrate page --list

 page
  (*) 0001_initial
  (*) migrations from 0002 to 0006
  (*) 0007_auto__del_realestatelistcontext__del_homepagecontext__add_listcontext
  (*) 0008_auto__add_field_listcontext_num
  (*) 0009_auto__chg_field_listcontext_content
  (*) 0010_auto__del_field_listcontext_content
  ( ) 0011_auto__add_field_listcontext_content

I messed up things so that both python manage.py migrate page 0009 and python manage.py migrate page 0011 raise DatadaseError.

I’m not interested to fix the broken migrations, but I want to restore the DB back to migration 0008 (I’m able to manually change the Python model as it was in 0008). I’m new to South and seeking suggestions on how to do that.

  • 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-06-17T22:34:35+00:00Added an answer on June 17, 2026 at 10:34 pm

    If you can manually restore the database state to 0008, you can tell South to treat it as such by “faking” the reverse migration to 0008.

    python manage.py migrate page 0008 --fake
    

    This will set the internal state to say the last applied migration is 0008 without trying to actually apply the reverse migrations for 0010 and 0009.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting this error on python manage.py migrate contacts. The error info does
I ran these lines from python manage.py shell: from django.db import connection cursor =
I am getting this error when running ./manage.py migrate app_name While loading migration 'whatever.0001_initial':
I'm getting a merciless $ python manage.py migrate Unknown command: 'migrate' Type 'manage.py help'
How do i deal with this. I tryed: python manage.py migrate but i get
python manage.py flush removes data from the entire project. I would like to be
every time I 'python manage.py migrate myapp ' , errors happened , it said
I am doing this through django $ python manage.py shell from django.contrib.auth.models import User
When I issue the command: python manage.py syncdb --database=mydb It shows the output as
In Django I am using two applications: python manage.py startapp books python manage.py startapp

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.