- Append 'django_slack' to INSTALLED_APPS;
- Append 'django_slack.urls' to urls;
- Access your django's admin, find 'django_slack';
- Add a new command, and paste your code which contains a function named 'command_func' into the
code
field, fill thecommand
field the literal command value, such as 'hello_world', and the slack command url will be the 'host/slack_cli/hello_world/'
Fill the url
field with the command url
Type the command in slack, and slack will call the given command url.