Skip to content

Instantly share code, notes, and snippets.

View XecusM's full-sized avatar
🎯
Focusing

Mohamed Aboel-fotouh XecusM

🎯
Focusing
View GitHub Profile
@XecusM
XecusM / DjangoStart.py
Last active June 4, 2019 00:54
Initate the new django project with its applications
'''
This script to initate a new django project with its applications.
It also add applications in settings.py and create templates and static folders,
and add their paths in settings.py as will
NOTE: you must install python>3.7 and django>2.0 before run this script
'''
import os, subprocess
def GetData():
@XecusM
XecusM / reset.py
Last active December 18, 2023 21:43
Reset Django Migrations
'''
This script to reset migrations and delete database for this project.
NOTE: This file must placed into the django project folder
and run it by type "python reset.py"
'''
import os
import shutil
import glob
# Stopping paramter
check = True