a simple test website with django
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'test_db', # change
'USER': 'root', # change
'PASSWORD': 'password', # change
'HOST': '172.0.0.1', # change
'PORT': '3306' # change
#'OPTIONS':{
# 'init_command': "SET sql_mode='STRICT_TRANS_TABELS'"
#}
}
}
sudo apt update
sudo apt install libmariadb-dev
pip3 install -U pip
pip3 install django
pip3 install mysqlclient
python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver