This is really simple, there is only one command with 3 optional arguments.

Let’s go!

  • djecrety command with no argument, generate and display a new secret key:
$ ./ djecrety
  • With -s argument, save the generated secret key to
$ ./ djecrety -s
  • With -p argument, display the generated secret key while saving to the file:


-p argument work with -s argument.

$ ./ djecrety -sp
  • With -d argument, specify settings directory name:


By default, Djecrety try to detect your project directory and location, if not in default location you can specify the directory name.

$ ./ djecrety -d testproject