diff --git a/django_pyvows/version.py b/django_pyvows/version.py index c8d11b6..b10e192 100644 --- a/django_pyvows/version.py +++ b/django_pyvows/version.py @@ -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) diff --git a/vows/sandbox/main/views.py b/vows/sandbox/main/views.py index 0a89d14..0f4f107 100644 --- a/vows/sandbox/main/views.py +++ b/vows/sandbox/main/views.py @@ -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):