Django admin is good enough for admin to manage the contents based on the models. However, when you want the users of the website to manage their content, you need to create separate forms for them. Introduction to the Django Form Handling forms involves very complex logic: Django forms simplifyContinue Reading

Introduction to the Django admin page When you create a new project using the startproject command, Django automatically generates the admin page for managing models including creating, reading, updating, and deleting which is often known as CRUD. To access the admin page, you navigate to the URL http://127.0.0.1/admin/. It’ll open the login page:Continue Reading

Introduction to Django migration commands When working with Django, you don’t need to write SQL to create new tables or make changes to existing tables. Instead, you use Django migrations. Django migrations allow you to propagate the changes that you make to the models to the database via the command line. DjangoContinue Reading

Introduction to Django models In Django, a model is a subclass of the django.db.models.Model class. A model contains one or more fields and methods that manipulate the fields. Essentially, a Django model maps to a single table in the database in which each field of the model represents a column in theContinue Reading

Introduction to the Django templates In the previous tutorial, you learned how to return a HttpResponse with a h1 tag from a view. To return a full HTML page, you need to use a template. A template is a file that contains the static and dynamic parts of a webpage. To generate the dynamicContinue Reading

Django projects and applications In the Django framework: A Django project may have one or more applications. For example, a project is like a website that may consist of several applications such as blogs, users, and wikis. Typically, you design a Django application that can be reusable in other DjangoContinue Reading

Django overview Django is a Python web framework that includes a set of components for solving common web development problems. Django allows you to rapidly develop web applications with less code by taking advantage of its framework. Django follows the DRY (don’t repeat yourself) principle, which allows you to maximize the codeContinue Reading