Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在表单和模板中定义电话号码错误获取:django.template.exceptions.TemplateDoesNotExist:phone\u field/phone\u widget.html?_Django - Fatal编程技术网

如何在表单和模板中定义电话号码错误获取:django.template.exceptions.TemplateDoesNotExist:phone\u field/phone\u widget.html?

如何在表单和模板中定义电话号码错误获取:django.template.exceptions.TemplateDoesNotExist:phone\u field/phone\u widget.html?,django,Django,如何在forms.py和我尝试过的模板中定义电话号码字段,但出现错误:django.template.exceptions.TemplateDoesNotExist:phone\u field/phone\u widget.html models.py from phone_field import PhoneField phone = PhoneField(blank=True, help_text='Contact phone number') 我也有同样的问题。对我有效的解决办法是 通

如何在forms.py和我尝试过的模板中定义电话号码字段,但出现错误:django.template.exceptions.TemplateDoesNotExist:phone\u field/phone\u widget.html

models.py

from phone_field import PhoneField

phone = PhoneField(blank=True, help_text='Contact phone number')

我也有同样的问题。对我有效的解决办法是
通过将
'phone\u field'
添加到
已安装的应用程序中

我也遇到了同样的问题。对我有效的解决办法是
通过将
'phone\u field'
添加到
已安装的应用程序中

您好,欢迎使用SO。您可能需要阅读和编辑相应的问题。您好,欢迎访问SO。您可能需要相应地阅读和编辑您的问题。