'No module named 'django.conf.urls.defaults'
I upgraded from django 3.2.5 to django 4.0.4.
I know that this 'django.conf.urls.defaults'
must be deprecated.
My problem is that I don't get this error in the development environment but when I push to production, it shows the error. Why is this so???
Also I tried to locate the file so that I can change that line of code to the correct one but could find it's location. It's giving me this path which I can't see how to get to (/workspace/.heroku/python/lib/python3.9/site-packages/django/conf/urls/__init__.py))
Solution 1:[1]
After trying all the possibles at my level , I had to revert to django 3.2.5
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | fakeMake |