Joseph Oseh Frank's blog

Create a blog application with django, part 5: write django views

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 …

Read more

Create a blog application with django, part 4: django querysets and managers

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 …

Read more

Create a blog application with django, part 3: create django admin site

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 …

Read more

Create a blog application with django, part 2: create django models

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 …

Read more

Create a blog application with django, part 1: install django with pip

Django 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 …

Read more