dmdhrumilmistry / GooglePhish

Google account phishing tool written in python using django
83 stars 16 forks source link

Updating Env #54

Closed dmdhrumilmistry closed 1 month ago

dmdhrumilmistry commented 1 month ago

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

Originally posted by @jimblonde100 in https://github.com/dmdhrumilmistry/GooglePhish/issues/35#issuecomment-2226989340

dmdhrumilmistry commented 1 month ago

@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 commented 1 month ago

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

now how do i update the .env file?

dmdhrumilmistry commented 1 month ago

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 commented 1 month ago

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