Changing the database on MySQL
This commit is contained in:
parent
8f9aca1772
commit
8b487c2c90
misc
pairent_backend
Before ![]() (image error) Size: 47 KiB After ![]() (image error) Size: 47 KiB ![]() ![]() |
Before ![]() (image error) Size: 60 KiB After ![]() (image error) Size: 60 KiB ![]() ![]() |
Before ![]() (image error) Size: 87 KiB After ![]() (image error) Size: 87 KiB ![]() ![]() |
Before ![]() (image error) Size: 15 KiB After ![]() (image error) Size: 15 KiB ![]() ![]() |
|
@ -75,8 +75,15 @@ WSGI_APPLICATION = 'pairent_backend.wsgi.application'
|
|||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': BASE_DIR / 'db.sqlite3',
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': 'pairent_db',
|
||||
'USER': 'root',
|
||||
'PASSWORD': '',
|
||||
'HOST': '127.0.0.1',
|
||||
'PORT': '3306',
|
||||
'OPTIONS': {
|
||||
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
django
|
||||
mysqlclient
|
Loading…
Reference in New Issue