Skip to content Skip to sidebar Skip to footer

Django Running Unittest Fail While One Of My App Named "apps", But "runserver" Works

I have a django-project, its apps like this: In apps/apps, there're views/models/urls as usual. 'runserver' works fine with command ./manage.py runserver --settings=mysettings 0:8

Solution 1:

Your project home shouldn't have an init.py file, unittest mistakes your project home for a module and tries to load the tests from there but fails (because it has the same name as the app in INSTALLED_APPS).


Post a Comment for "Django Running Unittest Fail While One Of My App Named "apps", But "runserver" Works"