Django Import Error: Cannot Import Name "shift"
I'm pretty sure it's due to a circular import but I'm not too sure how to solve my issue in mysite/shifts/models.py from django.db import models class Shift(models.Model): #
Solution 1:
Use the following line in mysite/shifts/scrapes.py
from .models import Shift
Solution 2:
from mysite.shifts.models import Shift
Post a Comment for "Django Import Error: Cannot Import Name "shift""