[Fixed]-Django commands cannot find the command module


Is __init.py__ named correctly? I am not sure if that’s a typo in your tree, or actually named like that.

Python treats directories containing __init__.py as modules – however, if that file does not exist it will not process that directory – so it won’t process __init.py__ or that “module”. It is perfectly ok for that file to be blank – however, if it isn’t you can import from it too (django does this a lot) and you can define what gets exported from the module too.

Leave a comment