Minor errors found, resolved the issues and all tests passed.
-
Home Page:
-
About Page:
-
Loppises Page:
-
Advert(add) Page:
-
Wishlist Page:
-
Signup Page:
-
Login Page:
-
Subscription Page:
-
Profile Page:
-
Loppis Details Page:
No errors or warnings found.
Version wrror found. Added '/* jshint esversion: 11, jquery: true */' at the top of js file and resolved the issues.
Passed all PEP8 Validator testing
Newsletter Subscription App
Python files | PEP8 result |
---|---|
admin.py | |
apps.py | |
models.py | |
forms.py | |
views.py | |
urls.py |
Please find all my defined user stories here
-
As a member user I want to be able to login or logout so that I can access my personal account information.
-
As a user I want to be able to easily recover my password in case I forget it so that I can recover access to my account.
-
As a user I want to be able to receive an email confirmation after registering so that I can verify that my account registration was successful.
-
As a user I want to be able to have a personalised profile page so that I can manage my account, add/edit or delete loppises that I published.
-
As a member user I want to be able to ask question to the loppis owner if I want to have more information regarding their loppis.
-
As a seller I want to be able to add my own loppis announcement so that I can get buyers to come to my loppis and purchase.
-
As a seller I want to be able to make payment with card so that my ad is successfully published in loppis list.
-
As a seller I want to be able to view my loppis information I entered just before payment so that I can make sure all the information I have entered are correct.
-
As a seller I want to be able to adjust my loppis just before payment so that I can correct any mistakes before the payment.
-
As a seller I want to be able to easily enter my payment information so that I can checkout smoothly.
-
As a seller I want to be able to see the amount of each announcement so that I can decide to proceed with payment or not.
-
As a seller I want to be able to feel my personal and payment information is safe and secure so that I can confidently provide the information to make the payment.
-
As a seller I want to be able to view a success page (payment and ad confirmation) so that I can verify that I haven't made any mistakes.
-
As a seller I want to be able to receive an email confirmation after checkout so that I can keep the confirmation of my payment and to keep a record of it if I want.
-
As a seller I want to be able to edit any loppis announcement I have added so that I can update/add or change any important information.
-
As a seller I want to be able to delete any loppis announcement I have added so that I can be in control of my items posted.
-
As a site user I want to be able to view all loppis announcments so that I can save and consider going to loppis.
-
As a site user I want to be able to find the menu easily so that I can know what content is available on the site.
-
As a site user I want to be able to navigate through the site so that I can view the desired content.
-
As a user I want to be able to easily register an account so that I can I can create and add my own loppis announcements.
-
As a site user I want to be able to view the loppis details so that I can make an informed decision for my needs.
-
As a user I want to be able to filter loppis by County so that I can find the ones that are closer to me.
-
As a user I want to be able to see the loppis date and time so that I can go to the flea markets(loppises) that are available during open hours.
-
As a user I want to be able to save the announcements so that I can view the details later.
-
As a user I want to be able to see the availability status of loppis so that I can know if it is expired.
-
As a user I want to be able to search by title, description or county so that I can I can find easily to the one I want to go.
-
As a user I want to be able to subscribe to newsletter so that I am informed about any loppises or announcements made.
-
As an admin I want to be able to have a support email so that I can I can be in control of any kind of support needed.
-
As an admin I want to be able to in control of django admin panel so that I can I can take necessary actions for any misconduct or issue reported.
- There is no unsolved bug in my site (as far as I know).
- Throughout the development process, I faced minor issues but resolved them after several tries.
- I had one bug that I struggled with:
- Problem Statement - "Whenever the payment is completed, django sends me emails from myself rather than the address of the user."
- You can view my process with this bug in Github Projects
- I did a deep search in Google, Stack Overflow and Django Documentations.
- I first added the sending email function. At first the problem I faced was the sender email received the emails so it was never being sent to the user.
- Then I tried getting the value of email from Django user model.
- I used "User.email" for that, the email got sent successfully in the terminal however the users email was mentioned as "deferred attribute object".
- I have talked to Code Institute tutors and my Mentor about this issue. If the email is not successfully sent it fails the stripe payment as it is placed in stripe webhook class, it needs successful email for stripe to complete it's function.
- With Code Institute's Tutor Gemma and Mentor Tim suggestions I have created a separate function within advert/views, and called this inside advert_success function.
- By removing the webhooks and adding a email function within the views solved the bug.
- Now the user successfully recieves confirmation emails for their payment and loppis advertisement.