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

There is a bug still #42

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

There is a bug still #42

wants to merge 15 commits into from

Conversation

ayush1999guptA
Copy link
Member

@ayush1999guptA ayush1999guptA commented May 20, 2019

-[ ] Closes: #31
-[ ] Closes: #21
-[x] PEP8
Changes Summary: created a user profile render thingy, there is still a bug I can't sort is that it is not able to fetch media files. I removed email validation as it was very uncertain. I worked very hard on this ,I better get the t-shirt :)

@pep8speaks
Copy link

pep8speaks commented May 20, 2019

Hello @ayush1999guptA! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-05-23 15:09:26 UTC

@svp19
Copy link
Member

svp19 commented May 21, 2019

Hehe @ayush1999guptA I had a problem with email validation too, and I understand. I really do suggest you use pycharm with pep8 installed, it really helps you write clean pep8 code fast. I'll review this soon.
And about media files, if the django server doesnt allow it we shall set up a cdn server.

@svp19 svp19 requested review from svp19 and NeuralFlux May 21, 2019 15:49
@ayush1999guptA
Copy link
Member Author

I fixed the pep8 issues

Copy link
Member

@svp19 svp19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • You'll have to pre-populate the edit form with old profile values so that we don't have to re-enter every field each time we want to edit it. To do this just pass profile instance while you instantiate the UserEditForm.
  • Also you'll have to pass request.FILES to make sure the image can be uploaded

Eg: form = UserEditForm(request.POST, request.FILES, instance=request.user.profilemodel)

@svp19 svp19 added the SoI19 label May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

View to render User Profile Signal to Create Profile on User Registration
3 participants