I'm trying to run this project locally but when i try manage.py makemigrations
i keep getting the following error:
ImportError: cannot import name 'config' from 'decouple'
Here are my steps:
I made some research but i found nothing about what could be generating that error. Can anyone help me out on this? Thanks in advance!I'm running Django 3.
Importerror: cannot import name 'config' from 'decouple' (Cause and Fix ) – The cause is pretty clear for this error is misplacing the package decouple and python-decouple both. The simple way to fix this error is by uninstalling this decouple package and after that installing python-decouple package.
You might have decouple installed in additional to python-decouple (two different packages).
If that is the case simply uninstall decouple
pip uninstall decouple
And ensure you have python-decouple installed
pip install python-decouple
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With