Share of social networks in django posts

I want to set a social link at the end of my post in a django template. how to use the share of social networks in a django post to exchange a link to my site on a social network?

+4
source share
2 answers

Check out django-social-share ( https://github.com/fcurella/django-social-share ) or django-socialsharing ( https://github.com/lettertwo/django-socialsharing ).

More details can be found here: https://www.djangopackages.com/grids/g/social/

+9
source

To use google, linkedin, facebook, use them:

 <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>
0

Source: https://habr.com/ru/post/1524691/


All Articles