Django Dev Journey #3
Tags: django, python, webdev, programming
Published: 2023-07-23 22:17:45



## **" 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 : 

https://www.forbes.com/sites/alexledsom/2022/09/16/paris-fights-back-against-love-locks/?sh=3f220651298a

Link for my GitHub: 

https://github.com/Jawdat-Tayfour

Thanks for reading.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qvkuy7vmgkwfo1qbkocl.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/76p5r869n6c5kuq6x74y.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ykhtc324hwh388kwnirz.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ykfbpawgzzqxuxe6myb.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m5nubx31iuop7n9ybxh1.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xkpqgr69pyc9ekwxb08o.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/60n36tkaqm8l1esiclkj.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yonlmt1isww4y3iilfy9.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gc05ur1skt3400x1ajyg.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/15qnfwm7b98iu6p19wp1.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c5tuzbaypeovjfrza8zo.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fakzikimqo52vtksckhe.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bfyl3ai8iznbhd9iz0kb.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yd439f12eh02yjctegqt.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cy1dda40s3wdvafe32wl.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e83kfwt12bb5p5pi4u7o.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/512h975ztbmizqbl6u9x.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5quga2e1d0ckzbq1y5l6.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vzoo9ufvgqv7xfqopna9.PNG)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m2fdqj92x7w17npzvpl8.PNG)