google-code-export / django-treemenus

Automatically exported from code.google.com/p/django-treemenus
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

TemplateSyntaxError when displaying the menu in template #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create menu in admin interface.
2. Create frontend template, write there
{% load tree_menu_tags %}
{% show_menu "LeftMenu" %}

What is the expected output? 
Menu of the site
What do you see instead?
Exception Type: TemplateSyntaxError
Exception Value:    Invalid block tag: 'show_menu_item'
Exception Location: /usr/lib/python2.4/site-packages/django/template/
__init__.py in invalid_block_tag, line 321

What version of the product are you using? On what operating system?
Django-treemenus 0.4, Django from trunk, Python 2.4.4, Debian etch 

Original issue reported on code.google.com by uzn...@gmail.com on 27 May 2008 at 7:18

GoogleCodeExporter commented 9 years ago
I don't get this error with the 0.4 release. Have you added 'treemenus' to the 
INSTALLED_APPS settings?
If it says that it's an invalid block tag, it means that the 'treemenus' app 
has not been included in the path 
properly.
Also, can you edit the menu in the admin?

Original comment by jipe...@gmail.com on 27 May 2008 at 10:14

GoogleCodeExporter commented 9 years ago
I have 'treemenus' in INSTALLED_APPS and I've created the menu in admin, 
editing 
works fine too.

Original comment by uzn...@gmail.com on 28 May 2008 at 9:43

GoogleCodeExporter commented 9 years ago
Hm. Adding {% load tree_menu_tags %} to the top of menu.html solved the issue.

Strange.

Original comment by uzn...@gmail.com on 28 May 2008 at 10:02

GoogleCodeExporter commented 9 years ago
Oh, I see! I used Example templates from MANUAL.txt =/

Original comment by uzn...@gmail.com on 28 May 2008 at 10:34

GoogleCodeExporter commented 9 years ago
Good to hear you solved your problem. Cheers!

Original comment by jipe...@gmail.com on 28 May 2008 at 11:28

GoogleCodeExporter commented 9 years ago

Original comment by jipe...@gmail.com on 28 May 2008 at 11:28