Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Env #54

Closed
dmdhrumilmistry opened this issue Jul 13, 2024 · 4 comments
Closed

Updating Env #54

dmdhrumilmistry opened this issue Jul 13, 2024 · 4 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@dmdhrumilmistry
Copy link
Owner

i m just learning here....
how do i update the Env File template?
any commands to do in terminal ?

Originally posted by @jimblonde100 in #35 (comment)

@dmdhrumilmistry dmdhrumilmistry added help wanted Extra attention is needed good first issue Good for newcomers labels Jul 13, 2024
@dmdhrumilmistry
Copy link
Owner Author

@jimblonde100 you can create an env file in the project's root directory with the below command:

export SECRET_KEY=$(python3 generate_new_key.py) 
touch .env
cat > .env <<EOL
DJANGO_SECRET_KEY=$SECRET_KEY
DEBUG=False
ALLOWED_HOSTS=*
CSRF_TRUSTED_ORIGINS=http://localhost:8000
EOL

@jimblonde100
Copy link

hi thanks for the quick reply...
i have done the above mentioned steps.

now how do i update the .env file?

@dmdhrumilmistry
Copy link
Owner Author

hi thanks for the quick reply... i have done the above mentioned steps.

now how do i update the .env file?

It's as simple as editing a file. You can use text editor to edit .env file as change values as per your requirement.

@jimblonde100
Copy link

finally got it...
being a n00b... i forgot to show hidden files.. sorry..
and thanks for the instant updates !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants