{"id":15180657,"url":"https://github.com/mtlpy/django-slackin-public","last_synced_at":"2025-10-01T22:31:28.550Z","repository":{"id":57422032,"uuid":"121333408","full_name":"mtlpy/django-slackin-public","owner":"mtlpy","description":"Slack invitation page for Django","archived":false,"fork":true,"pushed_at":"2018-03-10T17:44:28.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-07T00:08:30.603Z","etag":null,"topics":["django-framework","slack"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/django-slackin-public","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"brilliantorg/django-slackin","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtlpy.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-02-13T03:19:05.000Z","updated_at":"2018-02-17T00:08:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mtlpy/django-slackin-public","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtlpy%2Fdjango-slackin-public","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtlpy%2Fdjango-slackin-public/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtlpy%2Fdjango-slackin-public/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtlpy%2Fdjango-slackin-public/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtlpy","download_url":"https://codeload.github.com/mtlpy/django-slackin-public/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234908944,"owners_count":18905500,"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":["django-framework","slack"],"created_at":"2024-09-27T16:40:50.824Z","updated_at":"2025-10-01T22:31:23.276Z","avatar_url":"https://github.com/mtlpy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django-slackin-public\n\n[![Version](https://img.shields.io/pypi/v/django-slackin-public.svg)](https://pypi.python.org/pypi/django-slackin-public)\n[![License](https://img.shields.io/pypi/l/django-slackin-public.svg)](https://pypi.python.org/pypi/django-slackin-public)\n[![PythonVersions](https://img.shields.io/pypi/pyversions/django-slackin-public.svg)](https://pypi.python.org/pypi/django-slackin-public)\n[![Build](https://travis-ci.org/mtlpy/django-slackin-public.svg?branch=master)](https://travis-ci.org/mtlpy/django-slackin-public)\n\nSlack invitation page for Django (like https://github.com/rauchg/slackin)\n\n\n## Installation \u0026 setup\n\nInstall django-slackin-public\n\n```bash\n# pip install django-slackin-public\n```\n\nAdd to your `INSTALLED_APPS`\n\n```python\nINSTALLED_APPS = (\n    ...\n    'django_slackin_public',\n)\n```\n\nInclude the django-slackin-public URLconf in your project urls.py like this\n\n```python\nurl(r'^slackin/', include('django_slackin_public.urls')),\n```\n\nUpdate your settings.py\n\n```python\nSLACKIN_TOKEN = 'YOUR-SLACK-TOKEN' # create a token at https://api.slack.com/web\nSLACKIN_SUBDOMAIN = 'your-team'    # if https://your-team.slack.com\n```\n\nVisit [http://localhost:8000/slackin/](http://localhost:8000/slackin/) to send an invite to your Slack team.\n\n\n## Using signals\n\nUse signals to listen for invite events. Available signals are:\n- email_address_already_invited\n- email_address_already_in_team\n- sent_invite_to_email_address\n\nTo listen for a signal:\n\n```python\nfrom slackin.signals import sent_invite_to_email_address\n\n@receiver(sent_invite_to_email_address)\ndef my_invite_handler(sender, email_address):\n    print 'SIGNAL RECEIVED: {}'.format(email_address)\n```\n\n## Custom templates\n\nTo use custom templates, add the either of following files to your app's template directory\ndepending on what you want to customize.\nSee [templates/slackin](https://github.com/mtlpy/django-slackin-public/tree/master/django_slackin_public/templates/slackin)\nfor more details.\n\n- `slackin/invite/page.html`: the surrounding `body`, `head`, and inlined styles\n- `slackin/invite/content.html`: the text and form\n\nTemplates have access to the following slackin-specific context variables:\n- `slackin.team_name`: slack team name\n- `slackin.team_image`: slack team image\n- `slackin.users_online`: number of team members currently online\n- `slackin.users_total`: total number of team members\n- `slackin_invite_form`: invite form object\n- `slackin_invite_form_success`: `True` if `slackin_invite_form.is_valid()`\n\n# Development\n\n## Using [Dad](https://github.com/pior/dad)\n\n```shell\n$ dad clone mtlpy/django-slackin-public\n...\n\n$ dad up\n...\n\n$ dad lint\n...\n```\n\n## Release\n\n- Change the version in `setup.py`\n- Commit with message like `Release vX.X.X`\n- Run `dad upload-release`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtlpy%2Fdjango-slackin-public","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtlpy%2Fdjango-slackin-public","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtlpy%2Fdjango-slackin-public/lists"}