-
🖋️ This is My First Full Stack Project Using Django and TailwindCSS. Its V1 was created during Feb-2023. But at that stage It was Not so much featureful 😕.
-
🌝 So I thought to recreate the project.
-
🌟 Let's have a look on the feature differences.
-
The primary Goal of this project is to make it safe and less vulnerable from the attacks of anonymous / Unauthenticated Users. So I created this module - by taking help of Django Authentication System . Roughly The AUTH game in Django can be depicted like that - There are certain
Groupsof users , who have some categories ofpermissions, bascially they are two differentmodelsor SQL Relations who maintainM-2-Mrelationship among them. NowUsersare one of the Groups who have some permissions over the app - by default set by django. Now thisUsersis also a Model , which Got inherited fromAbstractUserModel, which furthur inherited fromAbstractBaseUserModel. Here I have Just Used theAbstractUserModel , and created my own user model by changing some of the method Definitions little bit. Check out insideusers📁 -
Although Previously I did the
Create-Read-Update-Deleteoperations on blogs , but there I did not take the help ofDjango Forms. I fetched the raw data fromrequest.POSTdictionary , which might have caused vulnerability. So here for all set of operations , I used this feature provided by django. -
Databases are crucial choices and Django gives native support for couple of good SQL databases - Postgres is one of them. Its a good Object-Oriented Database , have safety safety checking technoques like
Row Security Policies. So I switched to this database -
In V1 , I used a readymade packadge , which was not so developer-friendly . So I saw How they made the combination of two different servers and do that manually. Basically I applied
TailwindCss-CLIwithDjango(There is one tutorial in my github on this topic , can check out). ❗❗ This Way is not recommended for bigger projects -
Although The code for email is perfect . But as I am using my personal email as sender. so the recever's gmail is not allowing , because its not an email of a company. simple any unsafe app , not having any domain can't send email using the gmail service
-
So , I have written the testcases for both users and blogs . I declared a conftest file, where I created 2 Class Based Test configurations individually. Then I used them in my respective test-files.
git clone https://github.com/PARTHIB-DEB/PERSONAL-BLOG.git python -m pip install -r requirements.txt
or
python3 -m pip install -r requirements.txt
or
pip install -r requirements.txtAlthough Upgrade Your Django Version , whenever you download it.