我有以下视图功能
def test():
print 'test'
当我尝试在我的模型类中使用此功能并使用导入时:
from group.views import test
我收到以下错误:
File "/groups/models.py", line 14, in <module>
from groups.views import test
File "/groups/views.py", line 10, in <module>
from groups.models import Group
ImportError: cannot import name Group