reading-notes

Software Development Reading Notes

View on GitHub

Readings: Intro to Django

Credit link: https://docs.djangoproject.com/en/4.1/

Django is an open source, Python-based MVC web framework that used to design website pages. Django Software Foundation (DSF) supports and maintains this open source framework.

Why use Django

Fast implementation and deployment of your web applications

Install Django, Create your framework and start your development, Django provides a rich, dynamic database-access API for fast developments.

Django have design formats for all, you just need to modify accordingly.

Have everything you needed, not just a MWV framework

Secure

Scalable

Django uses a SHARED-NOTHING architecture allow developers to add hardware at any level.

Maintainable

Django code is written using design principles and patterns that encourage the Don’t Repeat Yourself (DRY) principle so there is no unnecessary duplication, reducing the amount of code. Django also promotes the grouping of related functionality into reusable “applications” and, at a lower level, groups related code into modules, the MVC design pattern.

versatile for all web developments

from companies, governments to social media networks they are all using Django to develop their projects.

Steps of creating a Django project

Projects vs. apps vs. models

An app is a Web application that does something;
A project is a collection of configuration and apps for a particular website. 
A project can contain multiple apps. 
An app can be in multiple projects.
A model is the single, definitive source of truth about your data. 

Things I want to know more