Skip to content
Permalink
Browse files

Ch02: Code Hello World web page content.

A website is two things: content, and a route to that content. A view in
Django defines the content.
  • Loading branch information
jambonrose committed Jul 30, 2015
1 parent 84b2c91 commit 9937ef66c08eaad5cd28691f927e194c29dbc577
Showing with 4 additions and 2 deletions.
  1. +4 −2 helloworld/views.py
@@ -1,3 +1,5 @@
from django.shortcuts import render
from django.http import HttpResponse

# Create your views here.

def greeting(request):
return HttpResponse('Hello World!')

0 comments on commit 9937ef6

Please sign in to comment.
You can’t perform that action at this time.