4๐
โ
So after trying various approaches to tackle the problem, I found that the problem lie in an accidental mistake. In the users
directory, Iโve deleted all the files in migrations
directory including its __init__.py
. If there is no __init__.py
file, the ValueError
will be thrown. If you manually add the __init__.py
file, everything works like a charm.
To those having the same problem, good luck!
๐คAren Li
0๐
For Django 3.2 deleting the migrations directory in the users
directory and running
python manage.py makemigrations users
python manage.py migrate
worked for me.
๐คRAYNARD DODZI
- [Django]-Listen to mqtt topics with django channels and celery
- [Django]-Is it possible to apply Wagtail CMS to my existing Django project?
- [Django]-TypeError can't pickle function objects (Django caching)
- [Django]-Value too long for type character varying(30)
- [Django]-Django โ decorators restrict "staff"
Source:stackexchange.com