Skip to content

Key Error : 'Secret Key' #490

@Stanislavnba

Description

@Stanislavnba

Hello, I tried to run the CRM. Downloaded it all.
installed the requirements.txt in both the file directory and in the virtualenv.
I cant run the server thou.
When I try to run it this shows up.
File "C:\Users\stani\OneDrive\Desktop\Ladyfit Site\Django-CRM-master\crm\settings.py", line 12, in
SECRET_KEY = os.environ["SECRET_KEY"]
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\os.py", line 679, in getitem
raise KeyError(key) from None
KeyError: 'SECRET_KEY'

I searched for this and I dont have .pyc files to delete. I fixed the dotenv import issue and it still doesnt work.
Any ideas ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions