you need to register ur model as well.
On Thu, 7 Nov, 2019, 8:27 PM Paras Jain, <parasjain329@gmail.com> wrote:
--this is my models.py file i created and migrated but model in not created in my admin page as database please somebody helpfrom django.db import models
# Create your models here.
class Company(models.Model):
email = models.EmailField()
def __init__():
return 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-msPj-1TNBx%3DP6YOZTZmaEhFp22%3DGa%3DHGC160w77fyEQ%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/CAFCu%3DVSsN1gm0Ymgo30iF3j_AOrJWjmt%2BfFWy0w_3o_mr41DvA%40mail.gmail.com.
No comments:
Post a Comment