I have the following code in my view:

from django.shortcuts import render_to_response
from warner.actions.models import ActionItem

def index(request):
    action_list = ActionItem.objects.all().order_by('-start_date')
        return render_to_response('actions/index.html', {'action_list':
action_list})

and when I try and go to the template I get the following error:

invalid syntax (views.py, line 6)

any ideas? I am using the following path in settings.py:

TEMPLATE_DIRS = (
        "~/Sites/warner/templates"
)


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to