Answers for "how to create database in django"

SQL
3

configure mysql database django

You need to make changes in project settings.py. 
Provide USER and PASSWORD for your database
If your database isn't mysql change ENGINE

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'myproject',
        'USER': 'root',
        'PASSWORD': 'rootpassword',
        'HOST': 'localhost',
        'PORT': '',
    }
}
Posted by: Guest on January-02-2021
0

database setup in django

sudo apt install python3-dev libmysqlclient-dev default-libmysqlclient-dev
Posted by: Guest on November-15-2020

Code answers related to "how to create database in django"

Code answers related to "SQL"

Browse Popular Code Answers by Language