from django.db import models
# Create your models here.
class Student(models.Model):
fname = models.CharField(max_length=50, null=True, blank=True)
def __str__(self):
return self.fname
please try this
On Mon, May 29, 2017 at 7:42 PM, jinghui yang <admin@euktv.com> wrote:
--ModuleNotFoundError: No module named 'models'
How to fix this error?
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/0d6d1c8a- .37e3-4024-863e-3befc271f5fe% 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+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/CAEPucBSLCYXash7hCJjdBor-FfZVfqeSLXP78kKKS-EYuHNCiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment