Category Shorts

How to add initial data to your Django project?

1- Run this command and change myapp to your app name: This command will create an empty migration file inside your app migrations directory, it will look like the following. 2- Write your initial data as a list of dicts.…

MySQL – MariaDB Query Log

Sometimes you need to see how an action affects your database. What are queries used on the database level to optimize your project flow, or for debugging reasons. In this article you will learn how to enable query logging for MariaDB/MySQL

this exceeds GitHub’s file size limit of 100.00 MB

Problem have you every added any large file to git commit then you find later you can’t push to GitHub because it exceeds GitHub’s file size limit ? Don’t worry there is multi solutions to this problem. Solution 1- Install…

Using environment variables with Django

It is important to keep sensitive bits of code like API keys and database credentials away from others. The best way to do this is to not put them on GitHub! Even if you are developing a personal project with…

How to Squash and Merge Django migrations?

Introduction Django Migrations are one of the main features that keep me coming back to Django for most of the projects I work on. Being able to simply define the database model in python, and then sync it with the…

Get Free Lifetime Server (4CPU, 24GB RAM)

Today I will tell you a secret that only few people know. You can get a free server forever with no fees at all. You can use it for hosting your website, hosting your emails, creating your own VPN server…

Select your currency
EGP Egyptian pound