I have the book "The definitive Guide to DJango: Web Development Done
Right".
Both editions use mod_python, and not mod_wsgi.

I have the setup correctly.

The first program was display the current datetime

views.py

from django.http import HttpResponse
import datetime

def current_datetime(request):
        now = datetime.datetime.now()
        html = "<html><body>It is now %s.</body></html>" % now
        return HttpResponse(html)


The urls.py

from django.conf.urls.defaults import *
from mysite.views import current_datetime

urlpatterns = patterns('',

        (r'^time/$', current_datetime),
)



I am getting nothing but again, the blue page with http://domain/time/

As a beginner, I can't find a book that use mod_wsgi....

So how do I set up this, and for the future (as there are multiple
pages in the future...)

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to