I seem to have everything installed correctly, and the python paths seem to be correct. I am going through the tutorial in the online book, and I run into a problem. When I run the first application http://127.0.0.1/now/ I get the following error:
'function' object has no attribute 'rindex' My urls.py is: from django.conf.urls.defaults import * from mysite.views import current_datetime urlpatterns = patterns('', (r'^now/$', current_datetime), (r'^admin/', include('django.contrib.admin.urls')), ) My views.py is: 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) I am at a loss as to what is going on here, so any help would be appreciated. I am running on OS X 10.4 if that helps. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---