サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
災害への備え
realpython.com
This is the second article in our Django migrations series: Part 1: Django Migrations: A Primer Part 2: Digging Deeper Into Django Migrations (current article) Part 3: Data Migrations Video: Django 1.7 Migrations - A Primer In the previous article in this series, you learned about the purpose of Django migrations. You have become familiar with fundamental usage patterns like creating and applying
This tutorial details how to validate email addresses during user registration. Updated 04/30/2015: Added Python 3 support. In terms of workflow, after a user registers a new account, a confirmation email is sent. The user account is marked as “unconfirmed” until the user, well, “confirms” the account via the instructions in the email. This is a simple workflow that most web applications follow. O
This tutorial details how to setup a Flask application on a server running Ubuntu. Since this process can be difficult, as there are a number of moving pieces, we’ll look at this in multiple parts, starting with the most basic configuration and working our way up: Part 1: Setting up the basic configuration Part 2: Adding Supervisor Part 3: Simplifying deployment with Git Hooks Part 4: Automating w
Do you have a phone that you can unlock with your face? Have you ever wondered how that works? Have you ever wanted to build your own face recognizer? With Python, some data, and a few helper packages, you can create your very own. In this project, you’ll use face detection and face recognition to identify faces in a given image. In this tutorial, you’ll build your own face recognition tool using:
This part of the tutorial details how to implement a Redis task queue to handle text processing. Updates: 02/12/2020: Upgraded to Python version 3.8.1 as well as the latest versions of Redis, Python Redis, and RQ. See below for details. Mention a bug in the latest RQ version and provide a solution. Solved the http before https bug. 03/22/2016: Upgraded to Python version 3.5.1 as well as the latest
Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: How to Set Up a Django Project Before you can start to build the individual functionality of a new Django web application, you always need to complete a couple of setup steps. This tutorial gives you a reference for the necessary steps to set
Welcome back. With the Redis task queue setup, let’s use AngularJS to poll the back-end to see if the task is complete and then update the DOM once the data is made available. Updates: 02/29/2020: Upgraded to Python version 3.8.1. 03/22/2016: Upgraded to Python version 3.5.1 and Angular version 1.4.9. 02/22/2015: Added Python 3 support. Remember: Here’s what we’re building - A Flask app that calcu
Sublime Text 3 (ST3) is a lightweight, cross-platform code editor known for its speed, ease of use, and strong community support. It’s an incredible editor right out of the box, but the real power comes from the ability to enhance its functionality using Package Control and creating custom settings. In this article, we’ll look at how to setup Sublime Text for full stack Python development (from fr
In this part we’re going to set up a Postgres database to store the results of our word counts as well as SQLAlchemy, an Object Relational Mapper, and Alembic to handle database migrations. Updates: 02/09/2020: Upgraded to Python version 3.8.1 as well as the latest versions of Psycopg2, Flask-SQLAlchemy, and Flask-Migrate. See below for details. Explicitly install and use Flask-Script due to chang
Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Deploying a Flask Application Using Heroku In this tutorial, you’ll create a Python Flask example application and deploy it using Heroku, making it publicly available on the web. Heroku removes much of the infrastructure burden related to bui
The following is a guest post by Jeff Knupp, author of Writing Idiomatic Python. Jeff currently has a Kickstarter campaign running to turn the book into a video series - check it out! A few months ago, I grew tired of the digital goods payment service I used to sell my book and decided to write my own. Two hours later, bull was born. It was a little application written using Flask and Python, whic
pandas GroupBy: Grouping Real World Data in Python In this course, you'll learn how to work adeptly with the pandas GroupBy while mastering ways to manipulate, transform, and summarize data. You'll work with real-world datasets and chain GroupBy methods together to get data into an output that suits your needs. Jul 23, 2024 intermediate data-science
If you ever devoted much time to Django database transaction management, you know how confusing it can get. In the past, the documentation provided quite a bit of depth, but understanding only came through building and experimenting. There were a plethora of decorators to work with, like commit_on_success, commit_manually, commit_unless_managed, rollback_unless_managed, enter_transaction_managemen
After a number of requests for a basic Flask and RethinkDB template, I decided to go ahead and write a blog post. This is that post. BTW: We always welcome requests. If you have something you’d like us to write about, or build, shoot us an email. Today we’ll be creating a simple todo list, which you’ll be able to modify to meet your own needs. Before beginning, I highly suggest reading over this a
PhantomJS is a headless Webkit, which has a number of uses. In this example, we’ll be using it, in conjunction with Selenium WebDriver, for conducting basic system tests directly from the command line. Since PhantomJS eliminates the need for a graphical browser, tests run much faster. Click here to watch the accompanying video. Setup Install Selenium with Pip and PhantomJS with Homebrew:
Get Python Tricks » 🔒 No spam. Unsubscribe any time. Python Testing Tutorials On this page, you will find tutorials on how to test different types of Python applications, from commandline apps all the way up to web applications. You’ll learn about the best practices and techniques to follow when testing your Python applications. Why Is Testing Important? We all make mistakes and if left unchecked
Adding a database to your Flask project comes with many advantages. By connecting a database, you’ll be able to store user information, monitor user interactions, and maintain dynamic site content. In this tutorial, you’ll learn how to: Hide secrets in environment variables Formulate your database structure with models Connect your Flask app with a database Receive data from users with forms By th
Flask is a powerful and flexible micro web framework for Python, ideal for both small and large web projects. It provides a straightforward way to get a web application up and running, with all the features that you need to get started. Over the course of this tutorial, you’ll explore the process of creating a boilerplate for a Flask web project. This boilerplate will serve as a great starting poi
Testing is vital. Without properly testing your code, you will never know if the code works as it should, now or in the future when the codebase changes. Countless hours can be lost fixing problems caused by changes to the codebase. What’s worse, you may not even know that there are problems at all until your end users complain about it, which is obviously not how you want to find out about code b
Updated on 02/27/2014 and again on 08/01/2014 (for the latest Plotly API)! In this next post in the Developing with Bottle series, we’ll be looking at both GET and POST requests as well as HTML forms. I’ll also show you how to consume data from the plot.ly API. You’ll also get to see how to create a cool graph showing the results of a cohort analysis study. Check out this article here if you are u
Your bookmarks list is empty Add bookmarks by clicking on the bookmark ribbon icon when viewing course lessons or articles. Continue Learning Recently viewed resources will appear in your Continue Learning list. Not sure where to begin? Read our Start Here guide or pick a Learning Path.
このページを最初にブックマークしてみませんか?
『Python Tutorials – Real Python』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く