Chapter 3. Hello World! with Django

In this chapter, we will not actually start with the development phase. Instead, we will study the basics of websites to learn Django, namely, the project and application creation. In this chapter, we will also:

  • Learn how to use regular expressions
  • Create your first URLs
  • Create your first view
  • Test your application

At the end of the chapter, we will have created our first web page that will display Hello World!.

Routing in Django

In the previous chapter, we edited the settings.py file to configure our Django project. We will edit settings.py again to add a new parameter. The following line must be present in settings.py:

ROOT_URLCONF = 'Work_manager.urls'

This parameter will define the Python file that will contain all ...

Get Django: Web Development with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.