Reputation: 41
How to define phone number field in forms.py and template i tried but getting error:django.template.exceptions.TemplateDoesNotExist: phone_field/phone_widget.html
models.py
from phone_field import PhoneField
phone = PhoneField(blank=True, help_text='Contact phone number')
Upvotes: 2
Views: 1168
Reputation: 1636
I had same problem. The solution worked for me is
by adding 'phone_field'
into INSTALLED_APPS
.
Upvotes: 13