Python sys.path - appending PYTHONPATH
If you do not have the file __init__.py
in your core folder, it will not be recognized as a package.
Therefore the solution is to add a file __init__.py
in your core folder.
If you have already added the problem may be the absolute path ... the core folder that has absolute path:
- /var/www/core
- /var/www/YourProject/core
if the second option you have to do: sys.path.append('/var/www/YourProject')