Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid block tag on line 2: 'blocktranslate'. Did you forget to register or load this tag? #72

Open
mostafa-yasen opened this issue Jan 23, 2023 · 1 comment

Comments

@mostafa-yasen
Copy link

I'm trying to install django-jet-reboot and all is going as expected. Until I tried to open a model list (e.g. Users list) I got the following error

Invalid block tag on line 2: 'blocktranslate'. Did you forget to register or load this tag?

After looking deeper in the traceback, I found out that the error is coming from jet/templates/admin/filter.html

{% load i18n %}
<h3>{% blocktranslate with filter_title=title %} {{ filter_title }} {% endblocktranslate %}</h3>
<ul>
	{% for choice in choices %}
		<li{% if choice.selected %} class="selected"{% endif %}>
			<a href="{{ choice.query_string|iriencode }}" title="{{ choice.display }}">{{ choice.display }}</a></li>
	{% endfor %}
</ul>

image

I ran the following commands in the installation process

  • pip install django-jet-reboot
  • Added "jet.dashboard", "jet" to the INSTALLED_APPS
  • Added
urlpatterns = [
    # Jet admin settings
    path('jet', include('jet.urls', 'jet')),
    path('jet/dashboard', include('jet.dashboard.urls', 'jet-dashboard')),
    ...
]
  • Added themes
JET_THEMES = [
    {
        'theme': 'default', # theme folder name
        'color': '#47bac1', # color of the theme's button in user menu
        'title': 'Default' # theme title
    },
  ...
]
  • python manage.py migrate
  • python manage.py collectstatic
@mostafa-yasen
Copy link
Author

@assem-ch Any ideas?

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

No branches or pull requests

1 participant