Usage¶
This is really simple, there is only one command with 3 optional arguments.
Let’s go!
djecretycommand with no argument, generate and display a new secret key:
$ ./manage.py djecrety
- With
-sargument, save the generated secret key tosettings.py:
$ ./manage.py djecrety -s
- With
-pargument, display the generated secret key while saving to the file:
Note
-p argument work with -s argument.
$ ./manage.py djecrety -sp
- With
-dargument, specify settings directory name:
Note
By default, Djecrety try to detect your project directory and settings.py location, if settings.py not in default location you can specify the directory name.
$ ./manage.py djecrety -d testproject