2👍
✅
Explicitly import management
from app
:
from app.management.commands.getevents import some_function
Just to prove my words with a working example, check how custom management command is imported in django-compressor
tests:
from compressor.management.commands.compress import Command as CompressCommand
Source:stackexchange.com