1👍
✅
The solution that @catavaran answered before works: using a relative import like from ..utils import myfunction
The problem was that the templatetag module recaptcha.py
and the django app recaptcha
had both the same name, so when I type from recaptcha import utils
it tries to find it from itself instead of from the recaptcha
module. I renamed the django app to catpcha
and it imports the module without problem.
@catavaran I don’t really know why your answer is deleted, but if you post it again I’ll mark it as the right one, you deserve the kudos!
Source:stackexchange.com