File tree 1 file changed +8
-1
lines changed
readthedocs/core/management/commands
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
- import structlog
2
1
import sys
3
2
from pathlib import Path
4
3
from pprint import pprint
5
4
5
+ import structlog
6
6
from django .conf import settings
7
7
from django .contrib .auth import get_user_model
8
8
from django .core .management .base import BaseCommand
@@ -48,6 +48,13 @@ class Command(BaseCommand):
48
48
49
49
By default the command won't send the email/notification (dry-run mode),
50
50
add the ``--production`` flag to actually send the email/notification.
51
+
52
+ .. note::
53
+
54
+ If you need to extend the behavior or add a new use case,
55
+ we recommend creating a simple script file that re-use the methods and functions from this command.
56
+ This is an example to contact Domain owners:
57
+ https://gist.github.com/humitos/3e08ed4763a9312f5c0a9a997ea95a42
51
58
"""
52
59
53
60
help = 'Send an email or sticky notification from a file (markdown) to all owners.'
You can’t perform that action at this time.
0 commit comments