Course Content
Django: Build Your First Website
2. The First Application
4. CRUD Operations
6. Forms and Dynamic URLs
Django: Build Your First Website
Render "Hi"
In this chapter, we will be working with two files, urls.py
and views.py
.
![](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/38d60016-124b-438a-bbf7-d4fe28f45b62_tam_con.png)
- 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.
AppFolder \ views.py
Import this view to the urls.py
and add path to urlpatterns
.
AppFolder \ urls.py
Video Explanation
Please note, in our project and in the video, our Django application is named "notes".
Everything was clear?
Section 2. Chapter 4
Course Content
Django: Build Your First Website
2. The First Application
4. CRUD Operations
6. Forms and Dynamic URLs
Django: Build Your First Website
Render "Hi"
In this chapter, we will be working with two files, urls.py
and views.py
.
![](https://codefinity-content-media.s3.eu-west-1.amazonaws.com/38d60016-124b-438a-bbf7-d4fe28f45b62_tam_con.png)
- 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.
AppFolder \ views.py
Import this view to the urls.py
and add path to urlpatterns
.
AppFolder \ urls.py
Video Explanation
Please note, in our project and in the video, our Django application is named "notes".
Everything was clear?
Section 2. Chapter 4