Tag: 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…

  • Setup environment variables in Django

    Setup environment variables in Django

    In this article, we’ll take a look at how to setup our Django project to utilize environment variables. Hence, our Django application can use environment variables to retrieve sensitive information that it requires for correct operation such as SECRET_KEY. Simply explained, environment variables are a collection of dynamically named values that are kept in the…

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

  • The Basics Of Django Web Development Framework

    The Basics Of Django Web Development Framework

    Django is a high-level Python web framework that promotes rapid development and simple, practical design. Django allows you to create better web apps faster and with less code. In this article, we will be taking a look at the basics of Django and it’s history. The Django Software Foundation owns the trademark Django, which is…

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