1👍
✅
I tried the approach from @valentjjedi and then I tired manage.py and got a different error indicating a MySQL-python issue so I uninstalled and reinstalled and it worked
env/bin/pip uninstall mysql-python
env/bin/pip install mysql-python
1👍
in my case I got this error after deleting an app folder which was still listed in INSTALLED_APPS. After commenting this app from INSTALLED_APPS everything got back to normal.
0👍
This error basically means that something is already tried to mess with app_config
ordered dict from Apps
class before django was able to setup installed apps properly in first place. Check django.apps.registry.Apps#populate
, it sais:
# app_config should be pristine, otherwise the code below won't
# guarantee that the order matches the order in INSTALLED_APPS.
if self.app_configs:
raise RuntimeError("populate() isn't reentrant")
Try to check what’s in this app_config
dictionary to get more information. Also just restarting all the things might help.
Source:stackexchange.com