rendered paste bodyfernando@fernando:~/Comunidade/Desenvolvimento/nerdgroup$ cat urls.py
from django.conf.urls.defaults import *
urlpatterns = patterns('',
# test
(r'^now/', include('nerdgroup.virtpy.views.test')),
# Example:
# (r'^nerdgroup/', include('nerdgroup.apps.foo.urls.foo')),
# Uncomment this for admin:
# (r'^admin/', include('django.contrib.admin.urls')),
)
fernando@fernando:~/Comunidade/Desenvolvimento/nerdgroup$ cat virtpy/views.py
from django.http import HttpResponse
import datetime
def test(request):
now = datetime.datetime.now()
html = "<html><body>It is now %s.</body></html>" % now
return HttpResponse(html)