Re: I put 3 more fields on database models

20 views
Skip to first unread message
Message has been deleted

Manjunath

unread,
Oct 7, 2018, 5:18:58 AM10/7/18
to Django users
Seems like you have not performed migrations after adding the new fields.

execute these commands & then run your server.

python manage.py makemigrations
python manage.py migrate
 

On Sunday, October 7, 2018 at 3:33:54 AM UTC+5:30, Bleron Uka wrote:
Hi, 
My database has data there and i add 3 more inputs and i am having this error ?!

daniel main

unread,
Oct 7, 2018, 5:21:17 AM10/7/18
to django...@googlegroups.com
Hello. Try and make the migrations then migrate. I hope that helps

On Oct 7, 2018 01:03, "Bleron Uka" <bler...@gmail.com> wrote:
Hi, 
My database has data there and i add 3 more inputs and i am having this error ?!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9d3c91cd-7568-417e-98eb-f38325a38120%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Deepak Kumar jha

unread,
Oct 7, 2018, 6:17:13 AM10/7/18
to django...@googlegroups.com

After adding fields in model you have to do

1:python manage.py makemigrations (app_name)

2: Python manage.py migrate

 

Sent from my Windows 10 phone

 

From: Bleron Uka
Sent: 07 October 2018 03:33 AM
To: Django users
Subject: I put 3 more fields on database models

 

Hi, 

My database has data there and i add 3 more inputs and i am having this error ?!

--
You received this message because you are subscribed to the Google Groups "Django users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages