How do you expect us to understand your problem if you give us no context at all? For all I know this error could be a file system corruption.
On May 30, 2017 2:42 AM, jinghui yang wrote:ModuleNotFoundError: No module named 'models'How to fix this error?
--
You received this message because yo
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 wrote:
> ModuleNotFoundError: No module named
Well simple fix is make sure you have a module named models.
Without the code no one is going to know what you did wrong.
On Mon, May 29, 2017 at 4:42 PM, jinghui yang wrote:
> ModuleNotFoundError: No module named 'models'
>
> How to fix this error?
>
> --
> You received this message because
3 matches
Mail list logo