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

  • Home
  • SEARCH
  • 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 4602672
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:01:28+00:00 2026-05-22T00:01:28+00:00

I have a little project I am working. I am writing django database to

  • 0

I have a little project I am working. I am writing django database to hold some data. I have one ManyToManyField.

I am using my own Manager and adding methods for convience. I have one that adds different tasks to the users to do list. These items can be assigned to many people and so on.

When I do this I am getting an IntegrityError What is the main cause of this? The exact error I am getting is.

...items_id may not be NULL

I would appreciate answer on how to fix this. Also an explanation on how this exception is thrown. I have been told to catch it. But I dont like things being thrown unless they need to be.

Please and thank you!

  • 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-22T00:01:29+00:00Added an answer on May 22, 2026 at 12:01 am

    Turns out all I needed to do was clean out my database with a python manage.py sqlflush Everything was fine afterwards. I then added south to help with migrations in the future.

    I would advise caution since sqlflush will return your database to back the state of the last syncdb.

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

Sidebar

Related Questions

I have a little project I am working on and I am using jQuery.
I'm working on a little project, basically I have some text on my PHP/HTML
I'm working on project with listview,but I have a little problem. I'm using SimpleAdapter
I am currently working on my own little project, but I have a little
I'm currently working on a little project to master using APIs and parsing data
I've started working on a little ruby project that will have sample implementations of
So I have a little bit of a problem. I working on a project
I have a little problem, I'm making project and I'm sending data from client
I have a question, I'm currently working on a little project of mine and
I have been working on a little MVC project to assist in my self-learning

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.