<snip> > from django.conf.urls.defaults import * > from django.views.generic.simple import direct_to_template > > # Uncomment the next two lines to enable the admin: > from django.contrib import admin > admin.autodiscover() > > urlpatterns = patterns('', > # Example: > # (r'^reco/', include('reco.foo.urls')), > (r'^$', 'direct_to_template', {'template': 'project_gi.html'}), > # Uncomment the admin/doc line below and add > 'django.contrib.admindocs' > # to INSTALLED_APPS to enable admin documentation: > # (r'^admin/doc/', include('django.contrib.admindocs.urls')), > > # Uncomment the next line to enable the admin: > (r'^admin/(.*)', admin.site.root), > ) > --------------------------------------------------------------------------------------------- > When I try to acces the root (http://127.0.0.1:8000/), then it comes > up with a TypeError, 'str' object is not callable. In the local vars > it refers to direct_to_template. > > I hope the info I gave is sufficient. If you need more, please ask. > Any help is appreciated!
You will need to replace 'direct_to_template' with direct_to_template (without the quotes) in your urlpatterns definition above. -RD --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---