social media link share in post django

久未见 提交于 2019-12-06 06:39:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!