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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:43:33+00:00 2026-06-15T12:43:33+00:00

I am using django along with southtut for my models. I added a column

  • 0

I am using django along with southtut for my models. I added a column to one model: time, and I set it as a TimeField. I then ran python manage.py schemamigration southtut –auto, and when it was asking me for a default value, without thinking, I just entered 1. That worked out fine. Then I ran python manage.py migrate southtut, which raised the error: ValidationError: [u”‘1’ value has an invalid format. It must be in HH:MM[:ss[.uuuuuu]] format.”] . I get why I have the error. But how do I get rid of that value 1? I can’t log into the admin site and delete because the column ‘time’ doesn’t exist. It doesn’t seem like I can do it running from the shell either, again, because there is no such column. But on the other hand, I can’t just add a different column; i.e., “realtime”, because the error ValidationError: [u”‘1’ value has an invalid format. It must be in HH:MM[:ss[.uuuuuu]] format.”] still gets raised. So how exactly do I get rid of that value?

  • 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-15T12:43:34+00:00Added an answer on June 15, 2026 at 12:43 pm

    To change the default value, just edit the migration file south created. It will be in southtut/migrations/

    Alternatively, it may be easier to just delete the migration file then run schemamigration again, but this time provide a valid default value. Because you didn’t successfully migrate, deleting the ‘bad’ migration file is harmless.

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

Sidebar

Related Questions

I have multiple Django models that reference a model using foreign keys as such:
I am using LinkedIn api along with Python, Django and Linux. The problem I
using django 1.4 I have a model with a datetimefield. I imported django.utils.timezone to
I'm using Django along with appengine. When I try to save a record, I'm
I'm doing a raw query on a Django model using a string of SQL
Consider this function i am using Django along tornadoweb def MeetingRecord(userid,mtngid,mesg): obj = Usage()
I am a python/django newbie following along this tutorial on dotcloud . I git
I'm running Python 2.6.1 and Django 1.2.1 on Windows XP SP3. I'm using JetBrains
I have dozens of Models, each with ONE associated ModelForm (whose Meta.model refers to
I have django models such as this class District(models.Model): name = models.CharField(max_length=30,unique=True) number =

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.