简体   繁体   中英

Watching for file changes with StatReloader Exception in thread django-main-thread: Traceback (most recent call last):

please help

trying to runserver and getting this error, this error starts from moving the project folder. even i try undo button. still having the same issue. is any solution to get back normal.

There are a couple of issues with your models.py file:

1: Your import is wrong, correct is from django.db import models
2: And on line 5

class student(models.Model):
    # your code

PS: Make the first letter of your class name capitalized, ie Student not student

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM