{"id":26518814,"url":"https://github.com/theskumar/django-unsubscribe","last_synced_at":"2025-03-21T10:02:33.739Z","repository":{"id":14090089,"uuid":"16793998","full_name":"theskumar/django-unsubscribe","owner":"theskumar","description":"Add unsubscribe link to your emails painlessly.","archived":true,"fork":false,"pushed_at":"2016-10-16T07:29:59.000Z","size":373,"stargazers_count":23,"open_issues_count":4,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-07T09:19:57.183Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theskumar.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.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":"2014-02-13T06:26:41.000Z","updated_at":"2024-11-28T16:28:48.000Z","dependencies_parsed_at":"2022-09-26T20:01:47.681Z","dependency_job_id":null,"html_url":"https://github.com/theskumar/django-unsubscribe","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theskumar%2Fdjango-unsubscribe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theskumar%2Fdjango-unsubscribe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theskumar%2Fdjango-unsubscribe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theskumar%2Fdjango-unsubscribe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theskumar","download_url":"https://codeload.github.com/theskumar/django-unsubscribe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244776331,"owners_count":20508506,"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":[],"created_at":"2025-03-21T10:02:32.259Z","updated_at":"2025-03-21T10:02:33.688Z","avatar_url":"https://github.com/theskumar.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"===============================\nDjango Unsubscribe\n===============================\n\n.. image:: https://badge.fury.io/py/django-unsubscribe.svg?fix\n    :target: http://badge.fury.io/py/django-unsubscribe\n\n.. image:: https://travis-ci.org/theskumar/django-unsubscribe.svg?branch=master\n        :target: https://travis-ci.org/theskumar/django-unsubscribe\n\n\nEasily send one-click un-subscribable emails from django to keep your customers happy.\n\n\nFeatures\n--------\n\n* Adds `List-Unsubscribe` header to the email.\n* Adds a context variable `unsubscribe_url` which can be used to render emails.\n* Provides signals to implement the actual unsubscribe logic.\n\nRequirements\n------------\n* Python (2.7, 3.2, 3.3, 3.4)\n* Django (1.4, 1.5, 1.6, 1.7)\n\nQuickstart\n----------\n\nInstall Django Unsubscribe:\n\n    pip install django-unsubscribe\n\nAdd `unsubscribe` to your `INSTALLED_APPS` settings.\n\n    from unsubscribe import UnsubscribableEmailMessage\n\n    # rest of your code\n\nAdd a signal listner for `user_unsubscribe` in your code that contains the logic to unsubsribe a user from the mailing list.\n\nThat's it!\n\nOverview\n--------\n\nThis application is supposed to help at improving the overall quality of the\nmass e-mails your site sends out by:\n\n1. Creating a simple subclass of `django.core.mail.EmailMultiAlternatives`, which adds a `List-Unsubscribe` header to the email message and a `render_message` function that is a wrapper to `render_to_string` to add `unsubscribe_url` to the context.\n\n2. Providing a replaceable `urlconf` and `view`, which provides a unique url for each user wishing to unsubscribe.\n\nThis application does not:\n\n1. Compose, create or mail newsletter e-mails for you. That is up to you.\n\n2. Actually unsubscribe members from your mailing lists. It provides a signal, `unsubscribe.signals.user_unsubscribe`, which you must hook on to to unsubscribe your users.\n\nContributing\n------------\nPlease send pull request or open a issue.\n\nLicense\n-------\n\nBSD\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheskumar%2Fdjango-unsubscribe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheskumar%2Fdjango-unsubscribe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheskumar%2Fdjango-unsubscribe/lists"}