8000 Add dotenv, remove redundant LOC, fix encoding problem, change URLs to ERP3 by icyflame · Pull Request #2 · metakgp/mftp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add dotenv, remove redundant LOC, fix encoding problem, change URLs to ERP3 #2

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

Merged
merged 12 commits into from
Aug 6, 2016

Conversation

icyflame
Copy link
Member
@icyflame icyflame commented Aug 5, 2016
  • Add dotenv so that this can be deployed locally with ease
  • Remove Sendgrid related LOC
  • Fix a problem where the default encoding was ASCII and it was unable to encode a few characters leading to error in the mail sending-code
  • Change all the URLs to ERP3

I have deployed this on my Personal Heroku account, and it works fine. If any of you wants to try the deploy out from scratch, that would be great.

I will let this PR be here for a few hours before merging it. Tell me what you think 😄

cc @amrav @hargup @nishnik

@icyflame icyflame self-assigned this Aug 5, 2016
@amrav
Copy link
Member
amrav commented Aug 5, 2016

Thanks for the fixes :) I see some debugging print statements, and commented out code - that can be cleaned up?

@icyflame
Copy link
Member Author
icyflame commented Aug 5, 2016

Yes, thanks! You are right. I am keeping the Login print statements, because they tell us about whether the login was completed or not. Everything else I'll remove.

@nishnik
Copy link
Member
nishnik commented Aug 5, 2016

@amrav @icyflame
Is this necessary ?
Someone might get confused by IIT_ERP2 there!

@icyflame
Copy link
Member Author
icyflame commented Aug 5, 2016

@nishnik The fact that it works tells us that they are obviously not checking that particular parameter. Most probably, they are just ignoring that header, and even if they are using it, they are simply checking the domain name, which happens to match erp.iitkgp.ernet.in.

I will test if this works after removing the parameters one by one, if it does, voila! We don't need it anyway.

@nishnik
Copy link
Member
nishnik commented Aug 5, 2016

I have checked it and it works without that parameter.

On Friday, August 5, 2016, Siddharth Kannan notifications@github.com
wrote:

@nishnik https://github.com/nishnik The fact that it works tells us
that they are obviously not checking that particular parameter. Most
probably, they are just ignoring that header, and even if they are using
it, they are simply checking the domain name, which happens to match
erp.iitkgp.ernet.in.

I will test if this works after removing the parameters one by one, if it
does, voila! We don't need it anyway.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AI0ui2qMrxaY4WtiVq47nr3kxNepOoj8ks5qc0DCgaJpZM4JdVYc
.

Nishant Nikhil
Sophomore
Department of Mathematics
IIT Kharagpur
| Mobile: +91 9933979842 <%2B91%2099339798428>
| Email: nishantnikhil@iitkgp.ac.in
http://www.krssg.in/

@icyflame
Copy link
Member Author
icyflame commented Aug 5, 2016

Thanks @nishnik ! I will remove that parameter.

@icyflame
Copy link
Member Author
icyflame commented Aug 6, 2016

I am merging this in now.

Thanks for the comments on the PR @nishnik and @amrav !

@icyflame icyflame merged commit 21c9452 into metakgp:master Aug 6, 2016
icyflame pushed a commit that referenced this pull request Aug 6, 2016
FIXES #2

Shortlog:

Siddharth Kannan (12):
      Add settings.py for dotenv setup
      Add python-dotenv to the requirements list
      Try some other things, still can't make it work!
      Change the IIT ERP2 Urls to appropriate values
      Show the secret question returned from ERP
      Fix typo in requirements file
      Change all the URLs to HTTPS
      Try different requests (from the Dev Console)
      Change the requested URL! Works!
      remove redundant loc, fix encoding
      Clean up, remove unnecessary lines, change print locations
      Remove unnecessary parameter from header url
@icyflame icyflame deleted the last-good branch August 6, 2016 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0