Re: creating models but its not showing in db

2017-01-31 Thread rajanmandanka
please confirm whether you register your app in INSTALL_APP in settings.py 
file.

python manage.py makemigrations 
python manage.py migrate 




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+unsubscr...@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.


Re: creating models but its not showing in db

2017-01-31 Thread Александр Христюхин (roboslone)
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  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+unsubscr...@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 
> .

-- 
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+unsubscr...@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/A5B972EF-9CBF-4082-865B-5C195D6DA0CF%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


creating models but its not showing in db

2017-01-31 Thread Kazi Atik
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+unsubscr...@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.