manu
manu

Reputation: 41

How to define phone number in forms and template error getting:django.template.exceptions.TemplateDoesNotExist: phone_field/phone_widget.html?

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

Answers (1)

Saurabh kukade
Saurabh kukade

Reputation: 1636

I had same problem. The solution worked for me is by adding 'phone_field' into INSTALLED_APPS.

Upvotes: 13

Related Questions