Managing database migrations is a great challenge in any software project. Luckily, as of version 1.7, Django comes with a built-in migration framework. The framework is very powerful and useful in managing change in databases. But the flexibility provided by the framework required some compromises. To understand the limitations of Django migrations, you are going […]
Category: Web Frameworks
Python web frameworks
Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 3
In Part 2 of this series, you added the ability to save changes made through the REST API to a database using SQLAlchemy and learned how to serialize that data for the REST API using Marshmallow. Connecting the REST API to a database so that the application can make changes to existing data and create […]
What Is Pip? A Guide for New Pythonistas
What is pip? pip is the standard package manager for Pyhon. It allows you to install and manage additional packages that are not part of the Python standard library. This tutorial is an introduction to pip for new Pythonistas. In this tutorial, you’ll learn about: Installing additional packages not included with the standard Python distribution […]
Get Started With Django Part 1: Build a Portfolio App
Django is a fully featured Python web framework that can be used to build complex web applications. In this tutorial, you’ll jump in and learn Django by example. You’ll follow the steps to create a fully functioning web application and, along the way, learn some of the most important features of the framework and how […]
Django Migrations 101
Since version 1.7, Django has come with built-in support for database migrations. In Django, database migrations usually go hand in hand with models: whenever you code up a new model, you also generate a migration to create the necessary table in the database. However, migrations can do much more. With this course you’ll get comfortable […]
13 Project Ideas for Intermediate Python Developers
Learning the basics of Python is a wonderful experience. But the euphoria of just learning can be replaced by the hunger for hands-on projects. It’s normal to want to build projects, hence the need for project ideas. The problem though is that some projects are either too simple for an intermediate Python developer or too […]
Python Development in Visual Studio Code
One of the coolest code editors available to programmers, Visual Studio Code, is an open-source, extensible, light-weight editor available on all platforms. It’s these qualities that make Visual Studio Code from Microsoft very popular, and a great platform for Python development. In this article, you’ll learn about Python development in Visual Studio Code, including how […]
Django Migrations: A Primer
Since version 1.7, Django has come with built-in support for database migrations. In Django, database migrations usually go hand in hand with models: whenever you code up a new model, you also generate a migration to create the necessary table in the database. However, migrations can do much more. You are going to learn how […]
Modeling Polymorphism in Django With Python
Modeling polymorphism in relational databases is a challenging task. In this article, we present several modeling techniques to represent polymorphic objects in a relational database using the Django object-relational mapping (ORM). This intermediate-level tutorial is designed for readers who are already familiar with the fundamental design of Django. Free Bonus: Click here to get the […]
Make a Location-Based Web App With Django and GeoDjango
Throughout this tutorial, you’ll learn how to use Django and GeoDjango to build a location-based web application from scratch. You’ll be building a simple nearby shops application that lists the shops closest to a user’s location. By the end of this tutorial, you’ll be able to: Use Django to build a simple web application from […]
A Pythonista’s Holiday Wish List
It’s that time of year again when everyone is looking to get last minute gifts. Whether you’re a friend of a Python developer or one yourself, I’ve got the perfect wish list if you’re looking to get a little something special. I’ve combed through the interwebs and polled my fellow Real Python authors to find […]
Hire me to help you hire
Do you have a growing engineering organization that needs help hiring effectively? I can help! I have consulting availability over the next few months to help organizations hire better. I can design your hiring process, write interview questions, teach staff how to interview successfully, or even run your hiring rounds. Read on more for details, […]
Hire me to help you hire
Do you have a growing engineering organization that needs help hiring effectively? I can help! I have consulting availability over the next few months to help organizations hire better. I can design your hiring process, write interview questions, teach staff how to interview successfully, or even run your hiring rounds. Read on more for details, […]
How to Publish an Open-Source Python Package to PyPI
Python is famous for coming with batteries included. Sophisticated capabilities are available in the standard library. You can find modules for working with sockets, parsing CSV, JSON, and XML files, and working with files and file paths. However great the packages included with Python are, there are many fantastic projects available outside the standard library. […]
Writing Comments in Python (Guide)
When writing code in Python, it’s important to make sure that your code can be easily understood by others. Giving variables obvious names, defining explicit functions, and organizing your code are all great ways to do this. Another awesome and easy way to increase the readability of your code is by using comments! In this […]