FAQ: Creating Your First Django App - Using a View To Send an HTML Page

This community-built FAQ covers the “Using a View To Send an HTML Page” exercise from the lesson "Creating Your First Django App ".

Paths and Courses
This exercise can be found in the following Codecademy content:

Build Python Web Apps with Django

FAQs on the exercise Using a View To Send an HTML Page

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!
You can also find further discussion and get answers to your questions over in Language Help.

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head to Language Help and Tips and Resources. If you are wanting feedback or inspiration for a project, check out Projects.

Looking for motivation to keep learning? Join our wider discussions in Community

Learn more about how to use this guide.

Found a bug? Report it online, or post in Bug Reporting

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

Running into this error:

Not sure what it means. I am following along via my MacBook terminal

# TemplateDoesNotExist at /demoapp1/

template/demoapp1/home.html

|Request Method:|GET|
| --- | --- |
|Request URL:|http://127.0.0.1:8000/demoapp1/|
|Django Version:|3.2.8|
|Exception Type:|TemplateDoesNotExist|
|Exception Value:|template/demoapp1/home.html|
|Exception Location:|/Users/stevenson/opt/anaconda3/lib/python3.8/site-packages/django/template/loader.py, line 19, in get_template|
|Python Executable:|/Users/stevenson/opt/anaconda3/bin/python|
|Python Version:|3.8.8|
|Python Path:|['/Users/stevenson/OneDrive/Full Stack/Python/django/demo', '/Users/stevenson/opt/anaconda3/lib/python38.zip', '/Users/stevenson/opt/anaconda3/lib/python3.8', '/Users/stevenson/opt/anaconda3/lib/python3.8/lib-dynload', '/Users/stevenson/opt/anaconda3/lib/python3.8/site-packages', '/Users/stevenson/opt/anaconda3/lib/python3.8/site-packages/aeosa', '/Users/stevenson/opt/anaconda3/lib/python3.8/site-packages/locket-0.2.1-py3.8.egg']|
|Server time:|Sun, 14 Nov 2021 00:07:19 -0500|

In codecademys creating your first django app → introduction to django-> Using a View to Send an HTML page it describes that it is best practice to namespace the HTML folders and keep them in the same directory. By doing keeping the files in the same directory does it limit Django’s search to only that directory and that boundary or that scope of searching is what prevents other files outside of the directory from being searched? Or do I misunderstand the namespace idea.
Link: https://www.codecademy.com/paths/build-python-web-apps-with-django/tracks/introduction-to-django/modules/introduction-to-django/lessons/creating-your-first-django-app/exercises/using-a-view-to-send-an-html-page