-
Notifications
You must be signed in to change notification settings - Fork 8
Usage
Majid Rouhi edited this page Apr 9, 2020
·
4 revisions
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 tosettings.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