Category: Python

  • How To Send Email In Django

    How To Send Email In Django

    Beginner Guide To Sending Emails using Django & SMTP In this article, we’ll take a look at how to setup Django to send email using SMTP. It’s quite simple to send emails using Django. I’ll walk you through the procedures in this brief tutorial so you can set up your Django application, and start sending […]

  • How To: Deploy Django using Docker & MySQL

    How To: Deploy Django using Docker & MySQL

    During the setup of MySQL with Django using Docker, I ran into few issues. As a result, I decided to write this article to help people trying to figure out on how to deploy a Django app using Docker and MySQL. MySQL is a relational database management system that is free and open-source. “My” is […]

  • Python Sleep Introduction

    Python Sleep Introduction

    Have you ever needed to wait for something in your Python program? You want your code to run as rapidly as possible most of the time. However, there are occasions when putting your code to sleep is in your best interests. To mimic a delay in your software, for example, you may use the Python […]

  • How To: Serve Django Static Files and Templates

    How To: Serve Django Static Files and Templates

    CSS, JavaScript, and typefaces are all essential components of any modern online application. Django offers a lot of flexibility in terms of how these files are used, but this might be confusing for newbies. The Django web server will provide static files for local development, and only little configuration is necessary. The external package WhiteNoise, […]

  • Upload Files using Python & Flask

    Upload Files using Python & Flask

    Uploading files is a regular job in web applications. You’ll learn how to achieve it with Python Flask in this tutorial. It’s quite easy to upload a file into a Flask web application using the Flask file. To publish the file to the URL, you’ll need an HTML form with the enctype property set to […]

  • Working With Python Multi-Threading

    Working With Python Multi-Threading

    In Python Multi-threading is a program execution mechanism that allows several threads to be formed within a process, each of which can execute independently while sharing process resources. Due to timeouts, I recently experienced an issue with a long-running web process that I wanted to significantly speed up. The system had to fetch data from […]

  • Working with JSON Data in Python

    Working with JSON Data in Python

    In this article, you will learn how to parse, read, and write JSON Data in Python. The JSON (JavaScript Object Notation) format is a standard for storing and exchanging data between processes. Json was originally part of JavaScript, but it has since grown, gained its own standard, and currently exists independently of JS or any […]

  • Send Encrypted Emails using Python and SMTP

    Send Encrypted Emails using Python and SMTP

    How to send encrypted emails using Python, SMTP and a Gmail account? Privacy is frequently lost as online data harvesting and security concerns grow. Because online privacy is so lacking, I began to consider a solution to encrypt messages. Because Python is such a versatile language, I wanted to see what I could achieve with […]

  • Basic Django Database Queries

    Basic Django Database Queries

    In this article, we will take a look at basic Django database queries, throughout the tutorial I’ll provide you with helpful code examples that will aid your learning about basic Django database queries. Django ORM is a strong abstraction that allows you to store and retrieve data from a database without having to write your […]

  • How To Reset Django Database

    How To Reset Django Database

    When working with databases, we frequently find ourselves in circumstances where we must completely reset the database. The database may have been loaded with too much useless data as a result of the addition or removal of some database tables, changes in the database design, logic and relationship concerns, or the database was populated with […]