Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » TemplateSyntaxError at /admin/sites/site/ Trying to use Tutorial 02 .96 and svn problems [RSS Feed]

#1 March 25, 2008 17:49:04

j.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

TemplateSyntaxError at /admin/sites/site/ Trying to use Tutorial 02 .96 and svn problems


I found the poster at the devshed article is only partially right. It
is those directories that are missing, but you need them from the .96
version. I found them here:http://code.djangoproject.com/browser/django/branches/0.96-bugfixes/django/contrib/adminOn Mar 25, 10:53 am, jmDesktop <> wrote:
> Hi, trying to learn Django and I am following everything in the
> tutorial.  However, when originally I tried to load the admin site I
> got an templatedoesnotexist error.  I followed this:
>
>http://forums.devshed.com/showpost.php?p=1856484&postcount=2>
> got the svn for post .96 and put in the admin templates and media
> directories.  The admin page worked and I was able to login and
> continue on the tutorial.
>
> Now, when I click change on a site I get a new error (see below.)  The
> problem is that I am running the svn I installed above that obviously
> is calling code that does not exist in .96, but does in the svn.
>
> How can I get either the .96 admin templates that are not in the tar
> of the official release or what can I do to get the svn running?  I
> thought that I could simply delete the existing django folders on my
> mac os x 10.5.2 and just paste the new ones, but was unsure if that
> was correct (though it was mentioned on the djangoproject page.)  Can
> I just delete the whole django directory and paste the new svn ones?
> What about my MySQL stuff, will it be there?
>
> Please help so I can use django.  Thank you.
>
> When I click change on the admin site I get:
>
> TemplateSyntaxError at /admin/sites/site/
> Invalid arguments to 'cycle':
>
> Request Method: GET
> Request URL:http://localhost:8000/admin/sites/site/> Exception Type: TemplateSyntaxError
> Exception Value:        Invalid arguments to 'cycle':
> Exception Location:     /Library/Python/2.5/site-packages/django/template/
> defaulttags.py in cycle, line 434
> Template error
>
> In template /Library/Python/2.5/site-packages/django/contrib/admin/
> templates/admin/change_list_results.html, error at line 13
> Invalid arguments to 'cycle':
> 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>
--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

  • Root
  • » Django
  • » TemplateSyntaxError at /admin/sites/site/ Trying to use Tutorial 02 .96 and svn problems [RSS Feed]

Board footer

Moderator control

Enjoy the 16th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support