docker-compose up -d
- settings.py using mysql
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'mariadb',
'USER': 'root',
'PASSWORD': '[your_password]',
'HOST': '[db_ip]',
'PORT': '3306',
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
},
}
}
python manage.py createsuperuser
python manage.py migrate