Answer the question
In order to leave comments, you need to log in
Django won't import my model?
models.py
from django.db import models
from news.models import New
......
......
File "/home/alexander/my_project/poliv/news/models.py", line 3, in <module>
from tour_category.models import TourCategory
File "/home/alexander/my_project/poliv/tour_category/models.py", line 2, in <module>
from news.models import New
ImportError: cannot import name 'New'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question