Can't generate SECRET_KEY.See original GitHub issue
CONTRIBUTING.md it says to generate the SECRET_KEY from the django shell, but in fact, you can’t run the shell itself unless your SECRET_KEY is set-up.
That’s why I suggest to remove the environment variable and put a SECRET_KEY generated prior so that people can generate it on their machine and then use the
python-dotenv library to keep their virtual environment variables in a
True since it’s the development code.
README.md/CONTRIBUTING.md might have to be updated accordingly.
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
I guess now everything is clear.
CONTRIBUTINGcan be updated now, These are the final steps:
1. Create virtual environment (using virtualenv - prerequistie) 2. Clone the repo. 3. Install Dependencies 4. Run the commands to generate the `SECRET_KEY` 5. Create a `.env` file add the key to it. 6. Create your feature branch . 7. Make changes. 8. Push Your changes. 9. 🎉
Maybe move some stuff from
README? I feel as if a lot of
README worthy stuff is in
CONTRIBUTING. I suggest moving “About the Project” and “Getting Started” to the README and we can put the “Installation” heading in the
README under “Getting Started” heading.
How about this for “Getting Started”?:
- Clone the repository.
- Create virtual environment.
- Install dependencies.
- Generate secret key from Django’s shell.
- Create .env file and put the key and other virtual environment variables in.
Separate points 6 through 9 in the
Shall I get started?
settings.py will need to be updated as well. Need to comment out the
LOCAL_HOST variables. Then mention uncommenting those out in the
README as well.