It shows TemplateDoesNotExist All other pages can be included except form.html in template_name in ModelForm.
class GeographyForm(ModelForm):
template_name = ‘form.html’
It shows TemplateDoesNotExist All other pages can be included except form.html in template_name in ModelForm.
class GeographyForm(ModelForm):
template_name = ‘form.html’
Welcome @fF-318 !
Side note 1: Please do not post images of code or error messages here. Copy / paste the code (or error message) into the body of your post, marked as “preformatted text”. You can do this by enclosing the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then the code (or error message), then another line of ```. Do this for each file (or portion of a file) being posted.
Side note 2: It is better if you include the full error message and traceback from the server console and not the summary information from the web page. Make sure you post the complete error message with the complete traceback.
If you notice, the portion of the error message posted here is not complaining about form.html
, it’s complaining about text_box.html
, which is a different file.