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/admin



On Mar 25, 10:53 am, jmDesktop <[EMAIL PROTECTED]> 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': ['cycle', "'row1'", "'row2'"]
>
> Request Method: GET
> Request URL:    http://localhost:8000/admin/sites/site/
> Exception Type: TemplateSyntaxError
> Exception Value:        Invalid arguments to 'cycle': ['cycle', "'row1'",
> "'row2'"]
> 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': ['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>
--~--~---------~--~----~------------~-------~--~----~
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