This website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker. Thank you for your support.
Control a Smart Device using Tuya API and Python

Control a Smart Device using Tuya API and Python

Sept. 23 2021 Yacine Rouizi
Tuya IoT Platform

In today's post, I will show you how to use Python and the internet of things to control a smart device. The internet of things is a system of interrelated sensors, software, and other technologies that can be connected to the internet ...


Read more ...
Image Classification with Python, TensorFlow and Deep Learning

Image Classification with Python, TensorFlow and Deep Learning

Sept. 15 2021 Yacine Rouizi
Keras and TensorFlow Deep Learning

In this tutorial, we will tackle the Fashion MNIST dataset to train a neural network that will classify images of clothing. The dataset contains 70,000 grayscale images of 28 × 28 pixels each in 10 categories.


Read more ...
How to Crop Images with OpenCV and Python

How to Crop Images with OpenCV and Python

Sept. 6 2021 Yacine Rouizi
OpenCV Image Processing

In OpenCV, images are simply Numpy arrays. So we can use Numpy array slicing to crop an image and remove the part we are not interested in.


Read more ...
Django Celery Result Backend

Django Celery Result Backend

Aug. 27 2021 Yacine Rouizi
Celery Django

Celery uses a result backend to keep track of the tasks’ states. In this tutorial, we are going to use the RPC (RabbitMQ/AMQP) result backend to store and retrieve the states of tasks.


Read more ...
Asynchronous Tasks in Django with Celery and RabbitMQ

Asynchronous Tasks in Django with Celery and RabbitMQ

Aug. 20 2021 Yacine Rouizi
Celery Django

Celery is a powerful asynchronous task queue based on distributed message passing that allows us to run time-consuming tasks in the background. Celery uses a message broker to communicate with workers. So, basically, Celery initiates a new task ...


Read more ...
How to Use Django's Generic Foreign Key

How to Use Django's Generic Foreign Key

Aug. 6 2021 Yacine Rouizi
Django Model

Django provide the contenttypes framework that allows us to create generic relationships between models. This can be useful when you want to implement, for example, a comment system where you can comment on posts, user profiles, images ...


Read more ...
Django Todo App with AJAX and jQuery

Django Todo App with AJAX and jQuery

July 27 2021 Yacine Rouizi
AJAX Django

In this tutorial, we are going to use jQuery and AJAX to send requests to a Django backend to add the CRUD (Create, Read, Update, Delete) operations asynchronously. For this, we are going to build a simple todo application.


Read more ...
How  to Customize the Validation of Forms in Django

How to Customize the Validation of Forms in Django

July 5 2021 Yacine Rouizi
Form Django

In a previous tutorial we saw how to create, render and validate forms. But we didn't talk too much about the validation process. In this tutorial we will see how to customize the form validation process using ...


Read more ...