freezing-fall-2672
09/14/2023, 8:57 AM-
with _
and some are not.
strarting from django settings I have f.e.
'django_countries',
'django_json_widget',
and in requirements.txt
django-countries==7.5
django-json-widget==1.1.1
so far so good, but I run into ModuleNotFoundError: No module named 'django_json_widget'
when trying to run a test.
Any ideas about this?freezing-fall-2672
09/14/2023, 9:00 AMlate-advantage-75311
09/14/2023, 9:02 AMlate-advantage-75311
09/14/2023, 9:02 AMlate-advantage-75311
09/14/2023, 9:05 AMfreezing-fall-2672
09/14/2023, 9:21 AMdjango-countries
(which is loaded first and not in the defaults) and not working for django-json-widget
.
so my guess would be the translation of pypi package name with a dash to an underscore in the source package name - but that can't be right since it doesn't work ... 🤔freezing-fall-2672
09/14/2023, 9:22 AMmodules
and module_mapping
when the module name is not standard' but somehow it doesn't work - for this example.
For other modules like f.e. "django-autocomplete-light": ["dal"],
it's working just fine.late-advantage-75311
09/14/2023, 9:24 AM-
between _
and only then applying those hardcoded mappingsfreezing-fall-2672
09/14/2023, 9:25 AM"django-admin-rangefilter": ["rangefilter"],
it seems to not worklate-advantage-75311
09/14/2023, 9:26 AMfreezing-fall-2672
09/14/2023, 9:26 AMlate-advantage-75311
09/14/2023, 9:27 AMpants dependencies your-source-target
what do you see?late-advantage-75311
09/14/2023, 9:28 AMfreezing-fall-2672
09/14/2023, 9:28 AMfreezing-fall-2672
09/14/2023, 9:28 AMfoo/bar:reqs#django-autocomplete-light
freezing-fall-2672
09/14/2023, 9:29 AMfreezing-fall-2672
09/14/2023, 9:30 AMfreezing-fall-2672
09/14/2023, 9:30 AMlate-advantage-75311
09/14/2023, 9:32 AMfreezing-fall-2672
09/14/2023, 9:32 AMfreezing-fall-2672
09/14/2023, 9:33 AMlate-advantage-75311
09/14/2023, 9:34 AMfoo.py
instead of some_trade_secret_stuff.py
) It is a common technique used on this channel and is very effective for getting help and increasing collective knowledge.freezing-fall-2672
09/14/2023, 9:38 AMfreezing-fall-2672
09/14/2023, 9:39 AMfreezing-fall-2672
09/14/2023, 9:39 AMlate-advantage-75311
09/14/2023, 9:46 AMfreezing-fall-2672
09/14/2023, 9:52 AM