Release 0.2.1

This commit is contained in:
Rafael Caricio 2011-08-22 10:50:40 -03:00
parent f3470f2693
commit 256295d157
2 changed files with 1 additions and 5 deletions

View file

@ -8,4 +8,4 @@
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com
__version__ = (0, 2, 0)
__version__ = (0, 2, 1)

View file

@ -17,16 +17,12 @@ def home(request):
def say_hello(request):
SAY_HELLO_WITHOUT_NAME = getattr(settings, "SAY_HELLO_WITHOUT_NAME", False)
if 'name' in request.GET:
name = request.GET['name']
elif not SAY_HELLO_WITHOUT_NAME:
return HttpResponse("What's your name?")
elif SAY_HELLO_WITHOUT_NAME:
name = 'guess'
return HttpResponse("Hello, %s!" % name)
def get_setting(request, attr):