Tuesday, January 31, 2017

Re: creating models but its not showing in db

please confirm whether you register your app in INSTALL_APP in settings.py file.

python manage.py makemigrations <app_name>
python manage.py migrate <app_name>




On Tuesday, January 31, 2017 at 9:38:34 PM UTC+5:30, Kazi Atik 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/bb23d195-772b-4829-9a5c-75e02600e174%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment