Error: no-name-in-module
Opened this issue · 0 comments
A snippet of the Pylint bug report is as follows:
************* Module canvas.urls
E: 3, 0: No name 'path' in module 'django.urls' (no-name-in-module)
************* Module lrndeep.urls
E: 17, 0: No name 'include' in module 'django.urls' (no-name-in-module)
E: 17, 0: No name 'path' in module 'django.urls' (no-name-in-module)
************* Module users.urls
E: 1, 0: No name 'path' in module 'django.urls' (no-name-in-module)
This particular error identified by Pylint is part of its variable checker system. It is raised when Pylint can't find the particular variable that has been imported from another module. In this case, the code is still able to run without error due to the error being caused by the lack of an environmental variable being set for the specific Django module.
References:
https://stackoverflow.com/questions/2108505/pylint-failing-for-a-number-of-django-imports