user8697572
user8697572

Reputation:

edit PostgreSQL database from django

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

Upvotes: 0

Views: 190

Answers (1)

Sapna Sharma
Sapna Sharma

Reputation: 754

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

Upvotes: 1

Related Questions