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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:25:04+00:00 2026-06-11T13:25:04+00:00

I have a git repository for django code. Python version 2.6 and django version

  • 0

I have a git repository for django code. Python version 2.6 and django version 1.4. Today accidentally from my home computer I tried to start the django app with python 2.7.3 and something strange happened. I have lost all the data from my data tables. I am not sure if the clash of versions is the cause or something else. How can I find out why the tables are empty? could it be a mysql problem? what would be the best strategy to debug this? The data is not that important but I would not like this to happen 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-06-11T13:25:05+00:00Added an answer on June 11, 2026 at 1:25 pm

    How can I find out why the tables are empty? could it be a mysql problem? what would be the best strategy to debug this? The data is not that important but I would not like this to happen again.

    The only way I can see short of thoroughly debugging the Django installation would be to set MySQL to logging everything, through the log facility in my.cnf:

    [mysqld]
    log            = /var/log/mysql/queries.log
    

    then restoring the data, then restarting MySQL so that the logging is in effect, and attempting again with Python 2.7.4. The data should disappear again, but this time you’ll see what commands where issued in the log file.

    Armed with those commands, you can try and see where they are in the Django code.

    A complete disappearance looks like a recreation of the Model structure, which means that somehow the system did not recognize the data as being there. I am not aware of any Python or Django issues to cause this.

    Are you sure you didn’t just issue a flush/reset command?

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

Sidebar

Related Questions

I have a git repository imported from subversion where users have names like H1234567
I have a Git repository that is accessed from both Windows and OS X,
I have a Git repository whose oldest commit is version 6.8.2 (it is tagged
I have a git repository (A) that includes a library code that I need
I have a git repository and two branches master and st (branched from master
I have a git repository setup on a server: andy@ubuntu:/home/git/repositories$ ls gitosis-admin.git GoGoFlow.git andy@ubuntu:/home/git/repositories$
I have a simple blog application written in Python, using Django. I use Git
I have a git repository with remote foo. foo is a web app, is
I'm using the GitPython package to access a Git repository from Python. This pulls
I have a Git repository on my local machine that I cloned from my

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.