Wednesday, November 13, 2019

Re:

thanks u so  so so much bro i have done such a silly mistake .Really appreciated

On Wed, Nov 13, 2019 at 5:11 PM Vivek Jha <jhavivek260@gmail.com> wrote:
Go to admin.py and import the model and then 


admin.site.register(modelname)

Save and refresh it 

On Wed 13 Nov, 2019, 5:08 PM Nitin Kalmaste, <nknckalmaste@gmail.com> wrote:
if your migrations are successful run queries through manage.py shell
There is existing User model inside django.contrb.auth.User

On Wed, Nov 13, 2019 at 3:49 PM Paras Jain <parasjain329@gmail.com> wrote:
i have just created a model which will have login information in database but it is not showing its appearance i have also done migration

models.py:

from django.db import models

# Create your models here.
class User(models.Model):
    email = models.EmailField()
    password = models.CharField(max_length=50)

    def __str__(self):                               
        return '{}'.format(self.email)

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMtmBS_GUL4vj5QPRd%2BqFLDkbnjRr_m%3DRbbt4QgG3sW-QbDVyQ%40mail.gmail.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKroR%2B139BnAHBORc33TCXDetsp5TvMgq6_Da4w7xCksZBmJRg%40mail.gmail.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMriZeFyAPP9vN46e%2BwROv34Pc6d1a5%3DMdi038Ru_aqpLfbfEw%40mail.gmail.com.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMtmBS9YoVPNVAeK4dWqi7E80qF6M7Ni_TVALXsA5Km5PDgGGA%40mail.gmail.com.

No comments:

Post a Comment