Skip to content

Commit 3af8093

Browse files
committed
doc howto addition
1 parent a8d5dbc commit 3af8093

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/source/howto.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,3 +449,13 @@ Or we could render the helps for individual subcommands as well:
449449
.. typer:: django_typer.management.commands.shellcompletion.Command:typer_app:install
450450
:prog: ./manage.py shellcompletion
451451
:width: 80
452+
453+
You'll also need to make sure that Django is bootstrapped in your conf.py file:
454+
455+
.. code-block:: python
456+
:caption: conf.py
457+
458+
import django
459+
460+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'path.to.your.settings')
461+
django.setup()

0 commit comments

Comments
 (0)