Abstract model in Django by Vincent/July 15, 2022, 2:36 p.m./5 minutes #Model The basis of an abstract model is to avoid code repetition. Django development follows the DRY (Don't repeat yourself) principle, and that is exactly what the abstract model class is … Continue Reading
Creating forms with Django by Vincent/June 11, 2022, 6:25 p.m./10 minutes #forms Most websites require a form. Unless you are developing a website or application that only publishes articles and does not require user input, a form is not required on your … Continue Reading
Using django_crispy_forms to style django forms by Vincent/June 10, 2022, 8:07 p.m./10 minutes #forms Django, by default, renders its form without styling. This was done on purpose to give developers complete freedom to style their forms however they see fit. We discussed how to … Continue Reading
How to create a Django Project Requirements.txt File by Vincent/May 3, 2022, 11:21 a.m./5 minutes #file The requirement.txt file is an important document when building a Django project since it lists not only the packages necessary to run the code but also registers their respective versions. … Continue Reading
Django Pagination: How to implement it. by Vincent/April 20, 2022, 1:58 p.m./10 minutes #pagination Generally, pagination is simply a technique for separating a document or content into different pages on a website. Typically, pagination arises because we want to provide a splendid user experience … Continue Reading