© Federico Marani 2019
Federico MaraniPractical Django 2 and Channels 2https://doi.org/10.1007/978-1-4842-4099-1_2

2. Getting Started with a Simple Company Site

Federico Marani1 
(1)
London, UK
 

In this chapter we will start to build the first pages of the site. These pages will offer the base functionality that is expected from a site, such as presentation pages and forms to gather leads.

We are going to discuss
  • Basic templates

  • Serving templates

  • Serving CSS and JS

  • How to add URLs

  • Creating a form that sends e-mails

Starting with the Homepage

The very first step that we will do is write the homepage for our site. It will give us something tangible to start with, and we will use this opportunity to introduce a few Django concepts.

To serve the homepage, we will ...

Get Practical Django 2 and Channels 2: Building Projects and Applications with Real-Time Capabilities 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.