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+unsubscr...@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.
  • [no subject] Paras Jain
    • Re: Nitin Kalmaste
      • Re: Vivek Jha
        • Re: Paras Jain

Reply via email to