swapnilsparsh / Rescue

A women’s safety website that sends emails and messages to your trusted ones.
MIT License
117 stars 182 forks source link

fixed errors in placing confidential info #341

Closed harshakhmk closed 3 years ago

harshakhmk commented 3 years ago

Related Issue or bug

Fixes: #292

Describe the changes you've made

Moved all the confidential information into environment variables and sending mail when the email and password provided by the host is Not None thereby reducing latency on the SMTPLIB server Used python decouple module with version 3.4 to configure the environment variables

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Describe if there is any unusual behaviour of your code(Write NA if there isn't)

A clear and concise description of it.

Checklist:

Screenshots

Original Updated
original screenshot updated screenshot
harshakhmk commented 3 years ago

@swapnilsparsh review it, is working fine now

harshakhmk commented 3 years ago

There are some bug errors while running your code, resolve them.

You need to install python-decouple module Could you exactly mention what errors are you facing in the screenshot, it is working fine for me

harshakhmk commented 3 years ago

I have updated my branch with all latest changes in master, I guess it won't have any issues now

AttributeError: module 'main_app.views' has no attribute 'email_sent'

The issue is with the master branch, code is breaking there

swapnilsparsh commented 3 years ago

Resolve the conflicts

harshakhmk commented 3 years ago

Resolve the conflicts

I have updated my commits, have a look

harshakhmk commented 3 years ago

I didn't get any such errors on my local branches no-issues everything is running fine for both my branch, master(both updated) Also, I didn't change anything in migrations scripts and all so my branch shouldn't be getting such errors, as long as you delay, I need to keep on updating my branch to make it in sync with the master

swapnilsparsh commented 3 years ago

ss I am getting this error

harshakhmk commented 3 years ago

U were not in virtual env, activate your virtual env and pull the latest commit from my branch then try the same

swapnilsparsh commented 3 years ago

U were not in virtual env, activate your virtual env and pull the latest commit from my branch then try the same

I have done the same still this error is showing.

harshakhmk commented 3 years ago

U were not in virtual env, activate your virtual env and pull the latest commit from my branch then try the same

I have done the same still this error is showing.

Have u installed all pip requirements in virtual env, I have added extra package python-decouple, run pip install -r requirements.txt again in this branch and can you tell me by invoking which view u r getting this error or you are getting this error by loading the main page itself I am sure, the no-issues-part2 error is not from my side, I have recently tested the code, check on your side

swapnilsparsh commented 3 years ago

U were not in virtual env, activate your virtual env and pull the latest commit from my branch then try the same

I have done the same still this error is showing.

Have u installed all pip requirements in virtual env, I have added extra package python-decouple, run pip install -r requirements.txt again in this branch and can you tell me by invoking which view u r getting this error or you are getting this error by loading the main page itself I am sure, the no-issues-part2 error is not from my side, I have recently tested the code, check on your side

I have done everything but don't know why this problem is happening. I have checked everything on my end and it's working absolutely fine, but running your code gives me an error.

harshakhmk commented 3 years ago

can u paste the last part of error message, it is not visible

harshakhmk commented 3 years ago

You need to add all variables that I mentioned in the .env file and also your google reCAPTCHA secret key too

swapnilsparsh commented 3 years ago

You need to add all variables that I mentioned in the .env file and also your google reCAPTCHA secret key too

Done it already.

harshakhmk commented 3 years ago

You need to add all variables that I mentioned in the .env file and also your google reCAPTCHA secret key too

Done it already.

I don't understand why you are getting those errors, everything is perfect from my side Putting in a lot of effort and then failing to merge a PR is a little painful and all the hard work that I put in goes in vain

swapnilsparsh commented 3 years ago

You need to add all variables that I mentioned in the .env file and also your google reCAPTCHA secret key too

Done it already.

I don't understand why you are getting those errors, everything is perfect from my side Putting in a lot of effort and then failing to merge a PR is a little painful and all the hard work that I put in goes in vain

I am trying my level best to resolve the error as you have invested your time and hard work in this issue and due to some bug, it is not possible to merge the PR.

harshakhmk commented 3 years ago

You need to add all variables that I mentioned in the .env file and also your google reCAPTCHA secret key too

Done it already.

I don't understand why you are getting those errors, everything is perfect from my side Putting in a lot of effort and then failing to merge a PR is a little painful and all the hard work that I put in goes in vain

I am trying my level best to resolve the error as you have invested your time and hard work in this issue and due to some bug, it is not possible to merge the PR.

can you reshare the last part of the error screenshot are u getting this error on running manage.py runserver ?

swapnilsparsh commented 3 years ago

You need to add all variables that I mentioned in the .env file and also your google reCAPTCHA secret key too

Done it already.

I don't understand why you are getting those errors, everything is perfect from my side Putting in a lot of effort and then failing to merge a PR is a little painful and all the hard work that I put in goes in vain

I am trying my level best to resolve the error as you have invested your time and hard work in this issue and due to some bug, it is not possible to merge the PR.

can you reshare the last part of the error screenshot are u getting this error on running manage.py runserver ?

The photo which I shared with you above is the only error that I am getting and it's a full photo. I am getting this error while running python manage.py migrate.

harshakhmk commented 3 years ago

see if this helps https://stackoverflow.com/questions/39581579/django-migrations-gives-error-when-run-separately-in-different-machines https://stackoverflow.com/questions/61658637/getting-errors-while-trying-to-run-manage-py-migrate

swapnilsparsh commented 3 years ago

see if this helps https://stackoverflow.com/questions/39581579/django-migrations-gives-error-when-run-separately-in-different-machines https://stackoverflow.com/questions/61658637/getting-errors-while-trying-to-run-manage-py-migrate

Tried all these things but still issue didn't resolve.

harshakhmk commented 3 years ago

see if this helps https://stackoverflow.com/questions/39581579/django-migrations-gives-error-when-run-separately-in-different-machines https://stackoverflow.com/questions/61658637/getting-errors-while-trying-to-run-manage-py-migrate

Tried all these things but still issue didn't resolve.

send me the bottom part of the error that you were getting after scrolling down to the bottom Can you delete the whole branch and the code of this feature branch and try pulling it again, something got messed up with migrations

swapnilsparsh commented 3 years ago

see if this helps https://stackoverflow.com/questions/39581579/django-migrations-gives-error-when-run-separately-in-different-machines https://stackoverflow.com/questions/61658637/getting-errors-while-trying-to-run-manage-py-migrate

Tried all these things but still issue didn't resolve.

send me the bottom part of the error that you were getting after scrolling down to the bottom Can you delete the whole branch and the code of this feature branch and try pulling it again, something got messed up with migrations

Already told you that the photo which I shared with you is the complete photo with error. You can try recommitting the code.

harshakhmk commented 3 years ago

see if this helps https://stackoverflow.com/questions/39581579/django-migrations-gives-error-when-run-separately-in-different-machines https://stackoverflow.com/questions/61658637/getting-errors-while-trying-to-run-manage-py-migrate

Tried all these things but still issue didn't resolve.

send me the bottom part of the error that you were getting after scrolling down to the bottom Can you delete the whole branch and the code of this feature branch and try pulling it again, something got messed up with migrations

Already told you that the photo which I shared with you is the complete photo with error. You can try recommitting the code.

You were not understanding what I meant, ok leave it trying deleting the codebase in this branch and pull it again

swapnilsparsh commented 3 years ago

see if this helps https://stackoverflow.com/questions/39581579/django-migrations-gives-error-when-run-separately-in-different-machines https://stackoverflow.com/questions/61658637/getting-errors-while-trying-to-run-manage-py-migrate

Tried all these things but still issue didn't resolve.

send me the bottom part of the error that you were getting after scrolling down to the bottom Can you delete the whole branch and the code of this feature branch and try pulling it again, something got messed up with migrations

Already told you that the photo which I shared with you is the complete photo with error. You can try recommitting the code.

You were not understanding what I meant, ok leave it trying deleting the codebase in this branch and pull it again

Still showing the same error.

khanfarhan10 commented 3 years ago

@harshakhmk conflicts still exist.

harshakhmk commented 3 years ago

Btw which OS were you using @swapnilsparsh

swapnilsparsh commented 3 years ago

Btw which OS were you using @swapnilsparsh

Windows

github-actions[bot] commented 3 years ago

Thank you @harshakhmk for your contribution. Looking forward for more such amazing contributions :)