0

i've created my database in postgresql using models in django . Now i need to add some columns in my tables ,so i edited my models but it keeps showing me errors in my admin interface

3
  • Did you migrate the database? Commented Jul 25, 2018 at 10:24
  • And could you be more specific about what "errors in the admin interface" means for you? Commented Jul 25, 2018 at 10:30
  • yes i tried migrating but it asking me to add a default value for columns ,is it possible to do it without adding a default value Commented Jul 25, 2018 at 10:34

1 Answer 1

1

Run the command:

python manage.py makemigrations

If it is asking for default values, give those default values. Finally run the command:

python manage.py migrate
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.