You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When we follow the manual installation process it seems that we are missing a .env file with some default key to launch the database migration or the run server.
To Reproduce
Steps to reproduce the behavior:
Clone the project
Follow the manual installation
You should have the error when trying to run the migration of the database
Expected behavior
I think we need two think to be clear and maintanable:
Create a .env.example with the default ENV key we need
## GENERAL SETTINGS
DEBUG=True
SECRET_KEY=local
ALLOWED_HOSTS=127.0.0.1, localhost, 0.0.0.0
Update the manual installation documentation to ask people to copy-paste the .env.example and rename it .env.
Additional context
This problem is only for manual installation process and it's not related to the use of virtualenv.
The text was updated successfully, but these errors were encountered:
I was thinking to leave the file .env with the config already in the project so no further documentation will be needed and no action required by the user.
My question is the .env file could clash with the .env.docker? if not I think it would be a good idea just to leave it available. What do you think?
The .env would not be a conflict with the .env.docker since .env.docker is not a default file in UNIX or WIN system and that it's clearly define in the docker-compose.yml.
However if we go with your solution how will we manage to modify the .env without pushing it by inadvertence ? Most of the time i like to put the .env in the .gitignore (as it's done by default in the .gitignore from Github for Python) so people do not push all their secret credentials if they forgot to not track the .env in their commit.
It's why i always create a .env.example:
It's easy to change the default value to help newcomers (we just need to update the file)
It easily protect the developers from sharing their secret credentials (since it's in the .gitignore)
But I'm always open to good idea to enhance that if you have a good tips 😉
Describe the bug
When we follow the manual installation process it seems that we are missing a
.env
file with some default key to launch the database migration or the run server.To Reproduce
Steps to reproduce the behavior:
Expected behavior
I think we need two think to be clear and maintanable:
.env.example
with the default ENV key we need.env.example
and rename it.env
.Additional context
This problem is only for manual installation process and it's not related to the use of virtualenv.
The text was updated successfully, but these errors were encountered: