Skip to content
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 9937ef6
Showing 1 changed file with 4 additions and 2 deletions.
@@ -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.