A Django view is just a Python function that receives a web request and returns a web response. All the logic to return the desired response goes inside the view. First, we will create our application views, then we will define a URL pattern for each view, and finally, we …
Now that you have a fully functional administration site to manage your blog's content, it's time to learn how to retrieve information from the database and interact with it. Django comes with a powerful database abstraction API that lets you create, retrieve, update, and delete objects easily. The Django Object-relational …
Now that we have defined the Post model, we will create a simple administration site to manage your blog posts. Django comes with a built-in administration interface that is very useful for editing content. The Django admin site is built dynamically by reading your model metadata and providing a production-ready …
Throughout this tutorial, you will encounter the terms project and application over and over. In Django, a project is considered a Django installation with some settings. An application is a group of models, views, templates, and URLs. Applications interact with the framework to provide some specific functionalities and may be …
This article is sponsored by WebisoftDjango is a Python web framework that can be used to build web applications. In this tutorial, you will learn how to build complete Django project, ready for production use. In case you haven't installed Django yet, you will learn how to do it in the first part of this …