Custome Setting Database Django

13 sec read

berikut ini macam cara settting database django

  1. MAMP Server
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'HOST': '/Applications/MAMP/tmp/mysql/mysql.sock',
        'NAME': 'crm',
        'USER': 'root',
        'PASSWORD': 'password',
        'PORT': '8888'
    }
}

2. MYSQL Server (XAMPP)

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'issue',
        'HOST': '127.0.0.1',
        'USER': 'root',
        'PASSWORD': 'password',
        'PORT': '3306',
        'OPTIONS': {'charset': 'utf8mb4'},
    }
}

3. Default

How to Run Django on Jupyter Notebook Visual Code

previously I have struggled to debug my app when running Python app directly; I need it to run on my Jupyter Workspace easily to...
admin
27 sec read

Multiple Database in Django

how to combine multiple database in django router/db_routers.py settings.py Command Migration Calling Object Database
admin
2 min read

How to secure important data with environments in Python

python file .env
admin
19 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *