cjwates

OperationalError: no such column: testapp_testapp.date_added

django Icon

OperationalError

no such column: testapp_testapp.date_added

An unhandled exception occurred
Exception source not available.

Solution

You might forgot to `makemigrations` and `migrate`.
do like this:

    python manage.py makemigrations
    python manage.py migrate            
View solution externally on StackOverflow
Mar 28, 2021 Anyone

0 replies


Install the browser extension

Found this solution helpful? Try our extension for quick solutions to your Django errors.

Chrome logo Add to Chrome - It's free