{"id":18041559,"url":"https://github.com/bashu/django-addthis","last_synced_at":"2026-03-06T18:03:45.215Z","repository":{"id":9826700,"uuid":"11813157","full_name":"bashu/django-addthis","owner":"bashu","description":"👍 A simple integration of the AddThis social sharing widget for Django projects","archived":false,"fork":false,"pushed_at":"2021-12-14T07:04:42.000Z","size":71,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-04-09T19:17:11.504Z","etag":null,"topics":["addthis","django","facebook","twitter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bashu.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-01T09:38:45.000Z","updated_at":"2021-12-14T07:04:45.000Z","dependencies_parsed_at":"2022-09-06T02:01:16.420Z","dependency_job_id":null,"html_url":"https://github.com/bashu/django-addthis","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-addthis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-addthis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-addthis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-addthis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bashu","download_url":"https://codeload.github.com/bashu/django-addthis/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094988,"owners_count":21046770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["addthis","django","facebook","twitter"],"created_at":"2024-10-30T16:10:37.934Z","updated_at":"2026-03-06T18:03:40.168Z","avatar_url":"https://github.com/bashu.png","language":"Python","readme":"django-addthis\n==============\n\n.. image:: https://img.shields.io/pypi/v/django-addthis.svg\n    :target: https://pypi.python.org/pypi/django-addthis/\n\n.. image:: https://img.shields.io/pypi/dm/django-addthis.svg\n    :target: https://pypi.python.org/pypi/django-addthis/\n\n.. image:: https://img.shields.io/github/license/bashu/django-addthis.svg\n    :target: https://pypi.python.org/pypi/django-addthis/\n\n.. image:: https://app.travis-ci.com/bashu/django-addthis.svg?branch=develop\n    :target: https://app.travis-ci.com/bashu/django-addthis\n\nA simple integration of the `AddThis \u003chttp://www.addthis.com\u003e`_ social sharing widget for Django_ projects.\n\nMaintained by `Basil Shubin \u003chttps://github.com/bashu/\u003e`_, and some great\n`contributors \u003chttps://github.com/bashu/django-addthis/contributors\u003e`_.\n\nInstallation\n------------\n\nFirst install the module, preferably in a virtual environment. It can be installed from PyPI:\n\n.. code:: shell\n\n    pip install django-addthis\n\nSetup\n-----\n\nYou'll need to add ``addthis`` to ``INSTALLED_APPS`` in your project's ``settings.py`` file:\n\n.. code:: python\n\n    INSTALLED_APPS += [\n        'addthis',\n    ]\n\nConfiguration\n-------------\n\nThe ``addthis_widget`` template tag requires a site *profile id*: ``pub_id``. Either pass it as ``pub_id``, or set ``PUB_ID`` in your ``ADDTHIS_SETTINGS`` settings dictionary:\n\n.. code:: python\n\n    ADDTHIS_SETTINGS = {\n        'PUB_ID': 'xx-xxxxxxxxxxxxxxxx',\n        ...\n    }\n\nThe site *profile id* can be found by visiting its Profile Options page on `AddThis \u003chttp://www.addthis.com\u003e`_ (**ID:**).\n\nThere are a few `configuration options \u003chttp://support.addthis.com/customer/portal/articles/1337994-the-addthis_config-variable\u003e`_ for ``addthis`` that can be placed in your ``ADDTHIS_SETTINGS`` settings dictionary:\n\n============================ ============================\nOption                       Default\n============================ ============================\nUSERNAME\nSERVICES_EXCLUDE\nSERVICES_COMPACT\nSERVICES_EXPANDED\nSERVICES_CUSTOM\nUI_CLICK                     False\nUI_DELAY                     0\nUI_HOVER_DIRECTION           0\nUI_LANGUAGE\nUI_OFFSET_TOP                0\nUI_OFFSET_LEFT               0\nUI_HEADER_COLOR\nUI_HEADER_BACKGROUND\nUI_COBRAND\nUI_USE_CSS                   True\nUI_USE_ADDRESSBOOK           False\nUI_508_COMPLIANT             False\nDATA_TRACK_CLICKBACK         True\nDATA_GA_TRACKER\n============================ ============================\n\nPlease see the ``example`` application. This application is used to\nmanually test the functionalities of this package. This also serves as\na good example.\n\nYou need Django 1.8 or above to run that. It might run on older versions but that is not tested.\n\nUsage\n-----\n\n#.  First of all, load the ``addthis`` in every template where you want to use it:\n\n    .. code:: html+django\n\n        {% load addthis %}\n\n    then load the widget:\n\n    .. code:: html+django\n\n        {% addthis_widget %}\n\n#.  Visit the AddThis `Get the Code \u003chttp://www.addthis.com/get\u003e`_ page and create/generate your social sharing code, e.g:\n\n    .. code:: html+django\n\n        \u003c!-- Go to www.addthis.com/dashboard to customize your tools --\u003e\n        \u003cdiv class=\"addthis_sharing_toolbox\"\u003e\u003c/div\u003e\n\n    Be sure to omit the:\n\n    .. code:: html+django\n\n        \u003cscript type=\"text/javascript\" src=\"//s7.addthis.com/js/300/addthis_widget.js#pubid=xx-xxxxxxxxxxxxxxxx\"\u003e\u003c/script\u003e\n\n    part of the (generated) code as the ``addthis_widget`` template tag takes care of this.\n\nExample\n~~~~~~~\n\n.. code:: html+django\n\n    {% load addthis %}\n\n    \u003c!DOCTYPE html\u003e\n\n    \u003chtml\u003e\n    \u003chead\u003e\n      \u003cmeta charset=\"utf-8\"\u003e\n      \u003ctitle\u003edjango-addthis Example\u003c/title\u003e\n    \u003c/head\u003e\n\n    \u003cbody\u003e\n      \u003c!-- Go to www.addthis.com/dashboard to customize your tools --\u003e\n      \u003cdiv class=\"addthis_sharing_toolbox\"\u003e\u003c/div\u003e\n\n      \u003cp\u003eWell, the way they make shows is, they make one show. That show's\n      called a pilot. Then they show that show to the people who make shows,\n      and on the strength of that one show they decide if they're going to\n      make more shows. Some pilots get picked and become television programs.\n      Some don't, become nothing. She starred in one of the ones that became\n      nothing.\u003c/p\u003e\n\n      \u003c!-- Placed at the end of the document so the page load faster --\u003e\n      {% addthis_widget %}\n    \u003c/body\u003e\n    \u003c/html\n\nContributing\n------------\n\nIf you've found a bug, implemented a feature or customized the template and\nthink it is useful then please consider contributing. Patches, pull requests or\njust suggestions are welcome!\n\nCredits\n-------\n\n`django-addthis \u003chttps://github.com/bashu/django-addthis/\u003e`_ was originally started by `Raymond Wanyoike \u003chttps://github.com/rwanyoike\u003e`_ who has now unfortunately abandoned the project.\n\nLicense\n-------\n\n``django-addthis`` is released under the GNU GPL v3 license.\n\n.. _django: https://www.djangoproject.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashu%2Fdjango-addthis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbashu%2Fdjango-addthis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashu%2Fdjango-addthis/lists"}