On 4/7/07, drackett <[EMAIL PROTECTED]> wrote:
>
> I have the following code in my view:
>
[1] > from django.shortcuts import render_to_response
[2] > from warner.actions.models import ActionItem
[3] >
[4] > def index(request):
[5] > action_list = ActionItem.objects.all().order_by('-start_date')
[6] > return render_to_response('actions/index.html', {'action_list':
> action_list})
Is the 'return' line (which I think is line 6 -- I'd obviously have to
see your exact file to be sure) indented further than the line above
it? That would certainly cause a python syntax error.
Regards,
Ian Clelland
<[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---