Tuesday, January 31, 2017

Re: creating models but its not showing in db

Did you run makemigrations first and then migrate?
Also, do you have any instances of your model?

On 31 Jan 2017, at 19:08, Kazi Atik <kazi.atik2@gmail.com> wrote:

Hi i am creating  a table in my model but its not showing in my sqlite.db files i also run migrate command and makemigration
Here is my code



from django.db import models
from django.contrib.auth.models import User

class Others (models.Model):
education = models.TextField()
aim = models.TextField()
award = models.TextField()

please help me out this



--
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-users@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/24b80b57-45bc-41ac-ad12-935340139ead%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment