Articles, news, and tips on Django and Python, page 7

What is Django Channels?

If, like me, you've done any research to answer this question, you've found that you can build a chat app. There are 100 if not more guides out there to help you build your next Slack. There aren't many tutorials, blogs, documentation, or other resources to help you do much more with Django Channels.

Django bugfix release: 3.1.4

Today we've issued the 3.1.4 bugfix release. The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used for this release is Mariusz Felisiak: 2EF56372BA48CD1B.

Modern Python Environments - dependency and workspace management

Once you get through the pain of setting up a Python environment for a single "hello world"-esque application, you'll need to go through an even more difficult process of figuring out how to manage multiple environments for multiple Python projects. Some of the projects could be new while others are stale piles of code from ten years ago. Fortunately, there a number of tools available to help make dependency and workspace management easier.

Django bugfix releases issued: 3.1.3, 3.0.11, and 2.2.17

Today we've issued 3.1.3, 3.0.11, and 2.2.17 bugfix releases. The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used for this release is Carlton Gibson: E17DF5C82B4F9D00.

How to Upload Files With Django

In this tutorial you will learn the concepts behind Django file upload and how to handle file upload using model forms. In the end of this post you will find the source code of the examples I used so you can try and explore.

Tips On Writing Data Migrations in Django Application

In a Django application, when schema changes Django automatically generates a migration file for the schema changes. We can write additional migrations to change data.

Django 3.0 beta 1 released

Django 3.0 beta 1 is now available. It represents the second stage in the 3.0 release cycle and is an opportunity for you to try out the changes coming in Django 3.0.

Multi-page Forms in Django

Most online forms fit on a single page. Think of a "join our forum" or "contact us" form into which the user enters a name, email address, and maybe a few other pieces of information. If you're building this kind of functionality into a Django site, you will probably want to take advantage of Django's built-in form classes. These are especially handy when dealing with model forms, where the form fields correspond to the fields on a model that will be saved in your database.

Django bugfix releases: 2.2.6, 2.1.13 and 1.11.25

Today we've issued the 2.2.6, 2.1.13, and 1.11.25 bugfix releases. The release package and checksums are available from our downloads page, as well as from the Python Package Index. The PGP key ID used for this release is Carlton Gibson: E17DF5C82B4F9D00.

Advanced Form Rendering with Django Crispy Forms

In this tutorial we are going to explore some of the Django Crispy Forms features to handle advanced/custom forms rendering.

Django Tutorials (Creating a Website) / Tutorial #11 - Final Video Tutorial

We have reached the final video lesson, in which we will not study anything further, but simply summarize what we have learned and where we should move on.

Django Tutorials (Building a Website) / Tutorial #10 - Adding Custom Pages

In this tutorial, we will add individual pages for each news article. We will write a URL check, and also create the correct output from the database of only one article on the site page.

Django Tutorials (Creating a Website) / Tutorial #9 - Migrations and the Admin Panel

In the lesson, we will touch on two important topics at once: migrations and the admin panel. Migrations allow you to specify new tables in the database, and the admin panel is used to add data to various tables in the database.

Django Tutorials (Creating a Website) / Tutorial #8 - Creating a News Template

In this lesson, we will finish the work on the news page on the site. We will create a template that will receive data from Python and output it through a loop in an HTML template.

Django Tutorials (Creating a Website) / Tutorial #7 - Starting a News Category

Our site has three sections, but only two of them are done. In this tutorial, we will start creating the news category of the site and create a table in the database for all the articles on the site.

Django Tutorials (Creating a Website) / Tutorial #6 - Passing Data from Python to HTML

To make HTML templates more dynamic, we need to pass data into them from Python. In this lesson, we will learn a technology that allows you to transfer values from the logical part of the site to the visual part.

Django Tutorials (Creating a Website) / Tutorial #5 - Adding Bootstrap Styles to a Website

Every site should have a beautiful design so that the user stays on it for as long as possible. In this video, we will add the Bootstrap library to the site and also learn how to add static files to the site.

Django Tutorials (Creating a Website) / Lesson #4 - Jinja Template Engine

The Python language has an excellent templating engine called Jinja. In this tutorial, we will learn how to work with Jinja and learn how to create and display blocks of HTML code in HTML page templates.

Django Tutorials (Creating a Website) / Lesson #3 - Creating a Django Application

Django sites are made up of various applications. In this tutorial, we'll create our first Django app and display some information on the site using the app.

Django Tutorials (Creating a Website) / Tutorial #2 - Installing Everything Necessary

To work with Django, you need to install Python, as well as the Django library itself. In this lesson, we will download and install everything necessary for comfortable work with the library in the future.