Hi, Is there any solution to the below described problem? I still haven't been able to get it to work.
Best, Rex On Dec 20, 3:11 am, Rex Eastbourne <[EMAIL PROTECTED]> wrote: > Hello, > > I'm going through the Django tutorial for Django 0.9.6 on Windows > Vista. Everything is going smoothly, and I'm following the tutorial to > a T; except when I'm in my admin site (step 2 of the tutorial), > clicking any of the links (Groups/Users/Sites/Polls), I get a > TemplateSyntaxError, appended below. Any ideas on how to fix this? The > only thing I did outside of the tutorial instructions was to follow > the fix described here because of an apparent flaw with > 0.96.:http://forums.devshed.com/showpost.php?p=1856484&postcount=2 > > Thanks! > > Rex > > =============================== > TemplateSyntaxError at /admin/polls/poll/ > Invalid arguments to 'cycle': ['cycle', "'row1'", "'row2'"] > Request Method: GET > Request URL: http://127.0.0.1:8000/admin/polls/poll/ > Exception Type: TemplateSyntaxError > Exception Value: Invalid arguments to 'cycle': ['cycle', "'row1'", > "'row2'"] > Exception Location: C:\Python25\lib\site-packages\django\template > \defaulttags.py in cycle, line 434 > Template error > > In template C:\Python25\lib\site-packages\django\contrib\admin > \templates\admin/change_list_results.html, error at line 13 > Invalid arguments to 'cycle': ['cycle', "'row1'", "'row2'"] > 3 <thead> > 4 <tr> > 5 {% for header in result_headers %}<th{{ header.class_attrib }}> > 6 {% if header.sortable %}<a href="{{ header.url }}">{% endif %} > 7 {{ header.text|capfirst }} > 8 {% if header.sortable %}</a>{% endif %}</th>{% endfor %} > 9 </tr> > 10 </thead> > 11 <tbody> > 12 {% for result in results %} > 13 <tr class="{% cycle 'row1' 'row2' %}">{% for item in result %} > {{ item }}{% endfor %}</tr> > 14 {% endfor %} > 15 </tbody> > 16 </table> > 17 {% endif %} > 18 > =============================== --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---