AttributeError: 'module' object has no attribute 'tests'

后端 未结 11 1854
自闭症患者
自闭症患者 2020-12-04 14:43

I\'m running this command:

python manage.py test project.apps.app1.tests

and it causes this error:

AttributeError: \

11条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 15:40

    Use:

    ./manage.py shell

    followed by

    import myapp.tests

    to find the nature of the import error.

提交回复
热议问题