No module named .. while running Django tests with PyCharm -


i have following error when running django's tests pycharm 4.5 importerror: no module named date_utils.

here short overview project tree:

. ├── manage.py ├── settings.py ├── app1 │   ├── models.py │   ├── __init__.py            #empty ├── utils │   ├── __init__.py            #empty │   ├── date_utils.py 

in app1.models.py, utils.date_utils import my_wonderful_function

i import both apps in settings.py

installed_apps = (     'grappelli',     '...',     'djcelery',     'utils',     'app1', ) 

please note working when using manage.py test.

can please understanding why happening pycharm not manage.py ? !

ok, found problem. problem pycharm have module named utils, , import not using module, pycharm's one.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -