utilisation du serveur mysql pour le dev

This commit is contained in:
2024-03-04 20:07:23 +01:00
parent e65b856c3b
commit 60de2f94dd
2 changed files with 9 additions and 3 deletions

7
Reskreen/my_dev.cnf Normal file
View File

@@ -0,0 +1,7 @@
[client]
database = django_dev
user = django_usr
password = YwVHV36ovBTXWugb
default-character-set = utf8
host =33.144.144.3
port =3306

View File

@@ -176,7 +176,6 @@ if cfg_dev_mode:
'NAME': BASE_DIR / 'db.sqlite3',
}
}
'''
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
@@ -184,7 +183,7 @@ if cfg_dev_mode:
'read_default_file': 'my_dev.cnf',
},
}
}'''
}
else:
DATABASES = {
'default': {