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

How can I load the origin templatetags (commets) when I custom comments app. #97

Open
ghost opened this issue Aug 6, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 6, 2016

I follow the doc 'Customizing the comments framework' and build an custom comments app.
The doc teach me set like this:

INSTALLED_APPS = [
    ...
    'my_comment_app',
    ...
]

COMMENTS_APP = 'my_comment_app'

But I want to use the templatetags in origin app. Since 'django_comments' not add in INSTALLED_APPS , I can not load 'templatetags.comments.py' in my template. Must I copy all code from that module to my custom app? Or is there more elegent solution?

Thank for you help!

@claudep
Copy link
Member

claudep commented Aug 6, 2016

With Django 1.9+, I guess you can leverage the libraries entry in TEMPLATES backend OPTIONS.
https://docs.djangoproject.com/en/1.9/topics/templates/#module-django.template.backends.django

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