This repository has been archived on 2023-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
django-pyvows/vows/sandbox/main/views.py
Rafael Caricio 5c90b472ea Refactory.
2011-08-18 19:39:52 -03:00

19 lines
523 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
# django-pyvows extensions
# https://github.com/rafaelcaricio/django-pyvows
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com
from django.http import HttpResponse
def home(request):
return HttpResponse('hello world')
def say_hello(request):
if not 'name' in request.GET:
return HttpResponse("What's your name?")
return HttpResponse("Hello, %s!" % request.GET['name'])