DeeMcCart / CI_PP5_Jeweller

Jewellery website for CI Project 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Task: Resolve Isues with / Enhance User Profile page

DeeMcCart opened this issue · comments

EPIC: #6

FTU_27: As a First-Time User I would like to create a profile to track my history with this retailer
RU_XX: As a Returning User I would like to view my profile to view my ordering history with this retailer

Assumptions or Pre-Requisites:

  • Basic all auth and profile work has been done, but errors on reaching user profile page

Acceptance Criteria: (Must be completed before task is moved to 'Done')

  • Must have a functional user profile page
  • Must be able to maintain profile image
  • User profile page should show previous order history

Tasks

  • Task1 Investigate error 'UserProfile has no attribute headers'
  • Task2 Compare user profile page to boutique Ado walkthrough created
  • Task3 Re-use modified BA views and template codes.
  • Task4 Test

Before changing task status to 'Review' or 'Done' please provide comment (and screenprints if appropriate) as documentary evidence of task completion

Task1: Investigate/resolve issue 'UserProfile has no attribute 'headers'': "GET /profile/ HTTP/1.1" 500 75748

Image

Suspect this is to do with version synchronicity. I have installed:
python 3.9.
django 4.2.9
django-allauth 0.60.1
oauthlib 3.2.2
requests-oauthlib 1.3.1
Reference:
https://docs.allauth.org/en/latest/account/advanced.html
https://docs.djangoproject.com/en/dev/topics/auth/customizing/

OK now testing (after some small edits to settings.py new user registration). Get this error on pressing enter on the registration form:

Image

OK reviewed this module and profiles page now working (close to)correctly:
Still needs ability to update profile image.

Image

Raised #45 to deal with profile pic bug