VeryApt / django-phone-field

Lightweight model and form field for phone numbers in Django
GNU General Public License v3.0
52 stars 13 forks source link

django.template.exceptions.TemplateDoesNotExist #15

Open Ravisen22 opened 3 years ago

Ravisen22 commented 3 years ago

I am getting the following errors when I run python manage.py runserver

Request Method: GET

http://127.0.0.1:8000/ 3.0.4 TemplateDoesNotExist movies/movies_stuff.html Z:\Courses2\cp-movie-app\venv\lib\site-packages\django\template\loader.py in get_template, line 19 Z:\Courses2\cp-movie-app\venv\scripts\python.exe 3.8.3 ['Z:\Courses2\cp-movie-app', 'C:\Users\Ravisen\anaconda3\python38.zip', 'C:\Users\Ravisen\anaconda3\DLLs', 'C:\Users\Ravisen\anaconda3\lib', 'C:\Users\Ravisen\anaconda3', 'Z:\Courses2\cp-movie-app\venv', 'Z:\Courses2\cp-movie-app\venv\lib\site-packages']

va-andrew commented 3 years ago

Hi, can you include some information why/how this might be caused by PhoneField?

mahs4d commented 3 years ago

TemplateDoesNotExist phone_field/phone_widget

Error during template rendering
In template /home/mahdi/.local/share/virtualenvs/api-lDtxtShb/lib/python3.8/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, error at line 19

this can be reproduced if you try to render phone field in a StackedInline.

va-andrew commented 3 years ago

Hi, I tried rendering PhoneField in a StackedInline and didn't encounter any issues. Can you reproduce using https://github.com/VeryApt/django-phone-field/tree/master/test_proj ?

hamifthi commented 3 years ago

Hi, I get the same issue when I tried to load the admin site and add an instance

jesstucker commented 3 years ago

Hi, I get the same issue when I tried to load the admin site and add an instance

Having this issue too. Django 3.2

adueppen commented 9 months ago

Experiencing this as well on Django 4.2 when attempting to include a phone field on the user update form in the admin interface.

EDIT: This is most likely because I forgot to add it to my INSTALLED_APPS.