Answer the question
In order to leave comments, you need to log in
Saleor. The SECRET_KEY setting must not be empty?
All ku. I'm trying to install Saleor (instruction here: https://docs.getsaleor.com/docs/getting-started/in...
Everything is fine, except that I can't generate SECRET_KEY in any way...
The instructions say:
Set SECRET_KEY environment variable
We try to provide usable default values for all of the settings. We’ve decided not to provide a default for SECRET_KEY as we fear someone would inevitably ship a project with the default value left in code.
$env:SECRET_KEY = "<mysecretkey>"
Answer the question
In order to leave comments, you need to log in
You can generate a secret key on the site: https://miniwebtool.com/django-secret-key-generator/
In Saleor, SECRET_KEY is taken with an environment variable with the same name, so it needs to be set. For Windows, this can be done in PowerShell by running the command:
you can check it with the command:
In Saleor, similarly, you need to set the DATABASE_URL in the format:
set DATABASE_URL='postgres://user:[email protected]/db_name'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question