Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

main_menu.html: Invalid block tag on line 2: 'get_site_root' #3

Open
yhoiseth opened this issue Nov 11, 2019 · 3 comments · Fixed by #4
Open

main_menu.html: Invalid block tag on line 2: 'get_site_root' #3

yhoiseth opened this issue Nov 11, 2019 · 3 comments · Fixed by #4

Comments

@yhoiseth
Copy link
Contributor

When running python manage.py compress --force, I'm getting:

Compressing... Invalid template /Users/yngve/.local/share/virtualenvs/entrepedia-lgvwzfOB/lib/python3.7/site-packages/wagtailextras/templates/templatetags/main_menu.html: Invalid block tag on line 2: 'get_site_root'. Did you forget to register or load this tag?
done
Compressed 1 block(s) from 60 template(s) for 0 context(s).

(Just to be clear, this doesn't seem to break anything.)

Here is the line the warning refers to. When I remove it, the warning disappears, and my menus still work. There doesn't seem to be any usages in the main_menu.html file. So I'm thinking it maybe could be removed, but I'm not entirely sure. I'll make a pull request to demonstrate.

@yhoiseth
Copy link
Contributor Author

@ramonakira May I ask you to take a look at this?

@ramonakira
Copy link
Member

Hi @yhoiseth

Sorry for not responding sooner. I will merge and create a new release asap. Thanks for your PR!

@yhoiseth
Copy link
Contributor Author

yhoiseth commented Sep 1, 2020

Hi @ramonakira,

Thanks for merging. Can you please make a new release?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants