Custom Search

Wednesday, November 30, 2016

python django ImportError: No module named localflavor.us.models

Error:
ImportError: No module named localflavor.us.models

Fix:
a)
$ pip install django-localflavor

b)
In settings.py, add "localflavor" in INSTALLED_APPS

c)
Then change the import statement, like
from localflavor.us.models import PhoneNumberField

1 comment: