A social-community and booking system for a private dog park. Built for Code Institute's Full Stack Software Development Diploma using Django, ElephantSQL and Bootstrap.
When using the 'Search' bar feature in the Articles section, my search for 'beagle', a word featured in an article, yielded 'Related Field has invalid lookup: icontains'.
When looking for the reason for the error code I discovered that by including the 'author' in my views.py search function, I was causing this error as 'author' is a ForeignKey in this model.
Developer error with forgetting 'is not none' for displaying image placeholder and file path error with '/'
The lovely Joanne from Tutor Support helped me to spot my error. After a long day of coding I needed to take a break and rest my eyes so I wouldn't make the mistake again. -> commit no. 7157472
As a user I want to see a message when I have successfully/unsuccessfully completed an action so that I can receive feedback from my interaction with the website.
Acceptance Criteria
Alert message displays successfully for login/logout/errors/information.
Alert message disappears by itself after a set amount of time and have a manual close button.
Alert messages styled to reflect the project whilst staying sensitive to the alert type.
Tasks
Create alert message HTML using Bootstrap
Add new classes to add my own styling for the project design
Add JS setTimeout function to have the message fade away after a set amount of time.
Add additional message to inform user if their comment has been approved and posted.
As a user, I can enter a search term into the search bar so that I can search for particular articles and articles with information topics that I am interested in.
Acceptance Criteria
User can see the 'search' bar in the navbar of the Article page views only
Deceptive site issue - Heroku site presenting as a 'Deceptive Site' intermittently on Chrome, Edge, FireFox, Safari
There were a couple of fixes for this issue. Firstly, on consulting with Tutor Support, Joanne assured me that since I had double checked all of my csrf tokens, forms and anchor tags that unfortunately the deceptive site issue was an occassional problem for different people and it was not an issue for assessment once I had made all of my checks. I persued the issue further and validated my site with Google using a head meta tag and validation via their Google Search Console. It informed me that my site had issues with 'phising' but it could not give me the exact location. There were no issues with a deceptive site with Google after this issue yet the issue remained with other browsers. I then discovered that occassionally when clicking 'Open App' from the Heroku dashboard, it was not automatically applying 'https://' to the site address and that this was causing the issue. Typing the full URL allows browsing of the site with no issues (so far).| 43975ef |
Wrong photo deletion - Delete icon was deleting the most recently uploaded photograph instead of the actual photo it was connected to
Fix -> Developer typo issue with calling photo.pk instead of photo.id
Info at commit 976b5ce -> When creating the delete account function, I managed to delete profile pk without deleting the user id which left the id/pk mismatched and caused issues for any new users created. I accessed the python shell and tried to match the id/pk again and ensure that the next registered account would be successful. Unfortunately not so I flushed the db and re-created my superuser. Issue resolved and delete code function removed until function is better understood.