Skip to content

Create a simple view before showing off admin and models #208

@bmispelon

Description

@bmispelon

The main objective of this is to have a view mounted at the root so that when we deploy the site to heroku later, there's a page that appears instead of a blank page.

It might also help make the chapter 1 more concrete (showing the request/response cycle, how you map URLs to views, ...).

I would put it at the end of chapter 8, after the reader sees the default "It works" page that Django generates.

Something as simple as:

def say_hello(request):
    return HttpResponse('Hello!')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions