3
3
3Create2019-10-02 22:03:31
Django
3Create, 2019-10-02 22:03:31

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>"

Need to activate the environment? Or how?
Ps I'm on Windows.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2019-10-03
@onufry

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 question

Ask a Question

731 491 924 answers to any question