How to solve "OperationalError: no such column" in Django?

how to solve a 2x2
how to solve a 3x3x3
how to solve a rubiks cube in 2 moves
how to solve a rubik's cube for beginners
how to solve rubik's cube 3x3 fastest way pdf
how to solve a rubik's cube in 20 moves
how to solve a rubix cube step by step
how to solve a rubik's cube step by step

I'm making a cart app for an e-commerce site to handle users sessions. I'm getting this error in the admin page when clicking on the carts section:

OperationalError at /admin/carts/cart/ no such column: carts_cart.user_id
Request Method: GET
Request URL:

Here's the cart model:

from django.db import models
from django.conf import settings
from django.urls import reverse
from products.models import product 


class cart(models.Model):
    user        = models.ForeignKey(user, null=True, blank=True)
    products    = models.ManyToManyField(product, blank=True)
    total       = models.DecimalField(default=0.00, max_digits=100, decimal_places=2)
    updated     = models.DateTimeField(auto_now=True)
    timestamp   = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return str(

    def __unicode__(self):
        return str(

from django.shortcuts import render
from .models import cart

def cart_home(request):
    return render(request,"carts/home.html",{})



products ,search ,tags works fine

Just use python3 migrate --fake 'app name' zero python3 migrate 'app name' to proper sync of migrations again

How to Solve the Rubik's Cube: An Easy Tutorial, Visit our new website: Learn to solve the 3x3 cube with an easy Duration: 37:39 Posted: Feb 9, 2017 Solve definition, to find the answer or explanation for; clear up; explain: to solve the mystery of the missing books. See more.

Like @bharat bhushan I used

python3 migrate --fake 'app name' zero
python3 migrate 'app name'

BUT, first I had to manually open the sql browser and delete the tables for that app, as otherwise I would get a: OperationalError: table "appname_classname" already exists

So, delete the tables manually and then use the two mentioned commands.

Learn How to Solve a Rubik's Cube in 10 Minutes (Beginner Tutorial , Learning to solve a Rubik's Cube can be easy! Read the pinned comment for common Duration: 10:03 Posted: Sep 19, 2018 Define solve. solve synonyms, solve pronunciation, solve translation, English dictionary definition of solve. v. solved , solv·ing , solves v. tr. To find an answer

I realized that I encountered this error when I forgot to do the following steps when I made changes to my model (in the

python makemigrations
python migrate

I am using Django 2.2, and it worked without problems thereafter

How to solve the Rubik's Cube - Beginners Method, The easiest way to solve the cube using the beginner's method. Divide the Rubik's Cube into Duration: 6:58 Posted: Apr 6, 2017 We at SOLVE, have taken time to reflect on the challenging and traumatic events of the past few weeks, and how we can support Black communities in Oregon. We have a lot of work to do. As anti-racism requires collective action, we vow to listen, learn, and adopt best practices, both internally and externally, to improve engagement opportunities

Solve the Rubik's Cube (3x3), Solve the Rubik's Cube 3x3 in six simple steps with our how-to guides: Our mobile-friendly Duration: 2:34 Posted: Mar 29, 2015 Partnerships are Solve marketplace success stories—often occurring between a Solver and Member. Thanks to our partners, Solve has brokered $25 million in funding commitments and 200+ partnerships for Solver teams and entrepreneurs.

Rubik's 3x3 Solution Guide, Learn to solve the Rubik's Cube in six simple steps. Easy tutorial with images and interactive demonstration. Just a few algorithms to memorize. Free equations calculator - solve linear, quadratic, polynomial, radical, exponential and logarithmic equations with all the steps. Type in any equation to get the solution, steps and graph

How to Solve The Rubik's Cube, Choose from the steps below to place the GREEN/WHITE/RED corner piece in place without Duration: 3:01 Posted: Oct 27, 2016 Dell Technologies SolVe Online is a lightweight browser-based web application used to find product information on specific products. SolVe provides Single Sign On (SSO) authentication with Dell Security and Technical information on your product.

  • what's that error?
  • OperationalError at /admin/carts/cart/ no such column: carts_cart.user_id Request Method: GET Request URL:
  • this is part of the error page showed to me
  • did you run your migrations ? make python makemigrations and then python migrate
  • i make all migrations for total ,for every app still not working
  • Very useful! thanks