“django.core.exceptions.improperlyConfigured: Die Einstellung Secret_key darf nicht leer sein” Code-Antworten

django.core.exceptions.improperlyConfigured: Die Einstellung Secret_key darf nicht leer sein

# add SECRET_KEY from terminal (secret_key is collected from django -->settings.py file)
$ export SECRET_KEY='lmrffsgfhrilklg-za7#57vi!zr)ps8)2anyona25###dl)s-#s=7=vn_'
#settings.py
import os
SECRET_KEY = os.environ['SECRET_KEY']
visualscrapper

django.core.exceptions.improperlyConfigured: Die Einstellung von Secret_key darf nicht leer sein.

I had the same error and it turned out to be a circular dependency between a module or class loaded by the settings and the settings module itself. In my case it was a middleware class which was named in the settings which itself tried to load the settings.
Santino

Ähnliche Antworten wie “django.core.exceptions.improperlyConfigured: Die Einstellung Secret_key darf nicht leer sein”

Fragen ähnlich wie “django.core.exceptions.improperlyConfigured: Die Einstellung Secret_key darf nicht leer sein”

Weitere verwandte Antworten zu “django.core.exceptions.improperlyConfigured: Die Einstellung Secret_key darf nicht leer sein” auf Shell/Bash

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen