Django Dev Journey #3
Jawdat Tayfour
Posted on July 23, 2023
" The bridge couldn't survive and the Town Hall was forced to remove them in 2015 after part of the bridge collapsed."
That is where this project started.
I read an article which I will link down below that the love padlocks were removed off “Pont Des Arts” bridge.
I was in the middle of reading “Django For Beginners” by William S. Vincent, which I mentioned in previous posts of mine.
I had this Idea to transfer the whole Love Padlock concept into something virtual that anyone from any place can take part in. Since, I missed my chance to place my own padlock on Pont Des Arts.
I started the project with the same blog concept that I learned from the book. I wanted to do more than just a blog but my skill set wasn’t totally ready for such a huge thing as what I ended up wanting this project to be, which is a form of a social network.
I have already built the skeleton of the website.
I replaced the old signing up mechanism with one that uses email verification to ensure that all of my users are real users. And got to learn more about tokens generation, temporarily links and how verifying by email works
I also implemented the password reset and password change the same way the book taught me to. So that wasn’t so new to me except the fact that writing the code for it without copying and pasting is pretty challenging.
I also learned how to fetch certain data from the database through reading many blogs and watching many tutorials about the subject, I created my own very simple User-Search functionality in this website.
I have also learned how friend/follow requests work on huge websites (or at least just the concept behind it ) by creating my own type of requests which I called “Lock Requests”.
A Lock Request is just the trigger for creating what I called a Padlock.
And a padlock in this scenario is a mutual Post that has a title of choice “You and the other person’s motto as I assumed”, the date when your story started, your story but this one is optional because not all of us are writers or have the skill to write a good story.
Ok, so the whole thing until this point work this way to put it simply:
Create an account and verify from the link in you email
Login to your account
Search for the account of the person that you want to create the padlock
Request to create a lock with them (send a Lock Request)
Wait until they accept the request
Once they accept it, you can add the details to the padlock
Then, the padlock will be sent for them to read,add,delete and fix anything about the details that you have added
When they finish up with the padlock the padlock gets published
Once it’s published it cannot be removed nor viewed until the anniversary of your story, which, you have entered previously while creating the padlock.
- What can you do with the website after you create the padlock, or, if you didn’t have the ability to create a padlock (You had no one that you would like to share such an experience with)?
You can scroll through other’s stories and mottos and add comments of your own which will show up on your profile for you to revisit whenever you want.
- What happens on your Lock’s anniversary ?
You can view and modify your padlock.
- Can you search for certain padlocks that you have not commented on?
Yes, just search their motto/title in your padlock search bar which only appears if you have created a padlock with someone.
- What’s next ?
For the next week I will be writing tests and fixing some minor issues with the project,
Such as which user can visit which page and under which circumstances.
I’ll go back to practise some more problem solving, just to keep my knowledge about Algorithms and Data Structures fresh in my memory
Once I make sure the whole project is sound and ready to push it into a github repo, I’ll make it an open source project which everyone can contribute to and take part in. Hopefully, that will happen in the next one or two weeks.
I’m gonna start working on two small projects right after I put this project up on my github, and continue with my Django journey with William S. Vincent’s next book, Django for Professionals: Production Websites with Python & Django.
Link for the article I mentioned :
Link for my GitHub:
https://github.com/Jawdat-Tayfour
Thanks for reading.
Posted on July 23, 2023
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.