Release 0.2.1
This commit is contained in:
parent
f3470f2693
commit
256295d157
2 changed files with 1 additions and 5 deletions
|
@ -8,4 +8,4 @@
|
||||||
# http://www.opensource.org/licenses/mit-license
|
# http://www.opensource.org/licenses/mit-license
|
||||||
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com
|
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com
|
||||||
|
|
||||||
__version__ = (0, 2, 0)
|
__version__ = (0, 2, 1)
|
||||||
|
|
|
@ -17,16 +17,12 @@ def home(request):
|
||||||
|
|
||||||
def say_hello(request):
|
def say_hello(request):
|
||||||
SAY_HELLO_WITHOUT_NAME = getattr(settings, "SAY_HELLO_WITHOUT_NAME", False)
|
SAY_HELLO_WITHOUT_NAME = getattr(settings, "SAY_HELLO_WITHOUT_NAME", False)
|
||||||
|
|
||||||
if 'name' in request.GET:
|
if 'name' in request.GET:
|
||||||
name = request.GET['name']
|
name = request.GET['name']
|
||||||
|
|
||||||
elif not SAY_HELLO_WITHOUT_NAME:
|
elif not SAY_HELLO_WITHOUT_NAME:
|
||||||
return HttpResponse("What's your name?")
|
return HttpResponse("What's your name?")
|
||||||
|
|
||||||
elif SAY_HELLO_WITHOUT_NAME:
|
elif SAY_HELLO_WITHOUT_NAME:
|
||||||
name = 'guess'
|
name = 'guess'
|
||||||
|
|
||||||
return HttpResponse("Hello, %s!" % name)
|
return HttpResponse("Hello, %s!" % name)
|
||||||
|
|
||||||
def get_setting(request, attr):
|
def get_setting(request, attr):
|
||||||
|
|
Reference in a new issue