Looking for code examples for customizing Django Wiki

65 views
Skip to first unread message

Xtian Simon

unread,
May 5, 2021, 9:19:38 PM5/5/21
to django-wiki
I'm confused about how I could add django-taxonomy or django-tagulous tags to django-wiki pages.

The obvious stupid thing to just edit Django Wiki directly, but then you lose the ability to update the code with django-wiki changes.

An idea suggested to me was to create my own template override as described in the django-wiki documentation, add a field for tagulous tags, then create a separate table in the database for tagulous tags with foreign key to the django-wiki article.

Django-tagulous docs instruct you to add TagField() to you model, which means overriding Django Wiki.

The whole thing about a project that only consists of overrides for Django Wiki just confuses me no end.

Any code examples would be greatly appreciated.


Benjamin Balder Bach

unread,
May 9, 2021, 4:18:22 PM5/9/21
to djang...@googlegroups.com

Hi Xtian

Other people have been asking similar questions about tagging before.

Short answer: No, you should not copy django-wiki -- I think what you could do would be to add an extra model, perhaps as a plugin, so you can store the relation between a tag and an article instance.

Here is a question where a plugin for tagging is somewhat outlined.

https://stackoverflow.com/questions/35364644/building-tags-plugin-for-django-wiki-using-django-taggit-cannot-save-with-save


Best of luck!

--
You received this message because you are subscribed to the Google Groups "django-wiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-wiki...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-wiki/6e20f1ba-cf61-4ff5-9278-55631dbda78an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages