Fantomas42 / django-blog-zinnia

Simple yet powerful and really extendable application for managing a blog within your Django Web site.
http://django-blog-zinnia.com/
BSD 3-Clause "New" or "Revised" License
2.11k stars 730 forks source link

auth_user_changelist not found causes TemplateSyntax Error in zinnia.admin #66

Closed vinny121 closed 13 years ago

vinny121 commented 13 years ago

Hi, I recently installed your blog and we like it a lot although when I am in the admin section, when I access the url: http://server/admin/zinnia/ I get a TemplateSyntaxError. So I opened up the file: admin/zinnia/widgets/_content_stats.html and I removed the code: {% url admin:auth_user_changelist %} and then reload the page and everything runs fine. Keep in mind, I don't have any exceptions with the rest of the admin pages since I added the zinnia urls to my urls.py file. Please let me know if this is a known issue and if there is a fix for this. Thanks

Fantomas42 commented 13 years ago

Hi vinny121,

did you have installed the django.contrib.auth application, before removing this line ?

Because normally this issue don't appears.

vinny121 commented 13 years ago

Yes, I have installed the django.contrib.auth application before installing zinnia. We can't run our website without the auth app.

Fantomas42 commented 13 years ago

Effectively we cannot run the website without the auth application.

But I don't understand why this url cannot be resolved. Which version of Django do you use ?

vinny121 commented 13 years ago

We use the development version of Django 1.3.0 beta ... http://code.djangoproject.com/svn/django/trunk@15535

Fantomas42 commented 13 years ago

I have tried to reproduce the bug, with the trunk version of django but without success...

Do you have changed the namespace of the admin app ?

vinny121 commented 13 years ago

No, we didnt change the namespace, the urls.py is standard: (r'^admin/', include(admin.site.urls)), ... On a side note, Zinnia blog seems to be an excellent drop in solution for blogging and I value that. But my team wants to extend the functionality (ala Django contrib.admin) of Zinnia rather than edit the templates in the zinnia pkg subdirectories. Is this something that most developers do with the Zinnia code? For example, we want to create the blog from our skeleton.html instead of editing yours.

Fantomas42 commented 13 years ago

For editing the templates, it's really simple, following the django philosophy about the templates, simply add a path to a new directory in the TEMPLATE_DIRS setting, and the templates will be overrided.

http://django-blog-zinnia.com/documentation/faq/#templates

Concerning the problem for resolving the admin:auth_user_changelist url, I have no more idea to solving it. It's the first time that I encounter this issue.