Open darbula opened 11 years ago
Are you trying to use {% news_and_events %}
? That's the only thing there that's interested in work_out_entity
. And unless you really, really want to use {% news_and_events %}
, my suggestion would be to get rid of the news_and_events()
inclusion tag altogether.
It's not used anywhere in Arkestra itself, any more. Do you have a template that needs to use the tag?
Yes I'm using {% news_and_events %}
the other approach is to use plugin but I like tag better. For now I solved work_out_entity
by uncommenting import line and giving the full path, that is from contacts_and_people.templatetags.entity_tags import work_out_entity
.
Second, circular dependency issue is avoided by importing CMSNewsAndEventsPlugin
inside inclusion tags.
If you really have a use for it, I guess {% news_and_events %}
is worth keeping.
What is the alternative, except for using plugin in placeholder?
There is no alternative.
Be warned however that the code in https://github.com/evildmp/Arkestra/blob/develop/news_and_events/templatetags/news_and_events_tags.py#L11 is out of date.
For example, the current_or_archive
attribute has been replaced with view
, and takes different slightly values.
There's some explanation at https://arkestra.readthedocs.org/en/latest/using_arkestra/arkestra_generic_models.html#cms-plugins-py, but I really need to do some work on all this!
News and events template tags are not working. There are few issues. First one is that
work_out_entity
on this line cannot be imported it should be uncommented and with full path:Another problem is on the next import
CMSNewsAndEventsPlugin
and this is the relevant (last) part of the traceback:It seems that the name
CMSNewsAndEventsPlugin
from the module...env\src\arkestra\news_and_events\cms_plugins.py
is needed while the same module is still importing its dependencies (line 9).