I created a file (permissions.py) in the main app(main_app). Now I imported it to an actual app view (actual_app):
from main_app.permissions import SomeClass
Pylint is throwing errors:
E0611: No name 'permissions' in module 'main_app' (no-name-in-module)
E0401: Unable to import 'main_app.permissions' (import-error)
However if I excluded E0611, E0401 in the error checking, my program works perfectly fine. Any idea on this?
Additional findings: if I do:
from ..main_app.permissions import SomeClass
Lint success, but now the actual program fails. Seems that it cant import the module the django way.