Course Content
Django: Build Your First Website
Django: Build Your First Website
2. The First Application
4. CRUD Operations
6. Forms and Dynamic URLs
Render "Hi"
In this chapter, we will be working with two files, urls.py
and views.py
.
-
In
views.py
, we will write a function that will display a page in the browser with the message "Hello, world!"; -
In the
urls.py
file, we will create a URL address for our page.
We have the implemented hi
view in views.py
file.
Import this view to the urls.py
and add path to urlpatterns
.
Video Explanation
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 4