Skip to content


Ch02: Code Hello World web page content.
Browse files Browse the repository at this point in the history
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 9937ef6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions helloworld/
@@ -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.