Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Usage

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:
$ ./manage.py djecrety
  • With -s argument, save the generated secret key to settings.py:
$ ./manage.py djecrety -s
  • With -p argument, display the generated secret key while saving to the file:

Note

-p argument work with -s argument.

$ ./manage.py djecrety -sp
  • With -d argument, 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