问题
I want to set social link in end of my post in template django. how to use of social media link share in django post for share my post link in social web?
回答1:
Check out django-social-share (https://github.com/fcurella/django-social-share) or django-socialsharing (https://github.com/lettertwo/django-socialsharing).
More can be found here: https://www.djangopackages.com/grids/g/social/
回答2:
For using google,linkedin,facebook please use these:
<a href="https://plus.google.com/share?url=http://your-domain{{ request.get_full_path|urlencode }}"></a>
<a href="http://www.linkedin.com/shareArticle?url=http://your-domain{{ request.get_full_path|urlencode }}&title=<your title>&summary=<your desc>&source=http://your-domain"></a>
<a href="http://www.facebook.com/sharer/sharer.php?u=http://your-domain{{ request.get_full_path|urlencode }}"></a>
来源:https://stackoverflow.com/questions/21479779/social-media-link-share-in-post-django