Skip to content

Commit 144de79

Browse files
authored
Update settings.py
1 parent 17646dc commit 144de79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/my_project/my_project/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585
DATABASES = {
8686
'default': {
87-
'ENGINE': 'mysql.connector.django', # Use MySQL as the database engine
87+
'ENGINE': 'django.db.backends.mysql', # Use MySQL as the database engine
8888
'NAME': 'movie_data', # The database name
8989
'USER': 'selina', # The database user
9090
'PASSWORD': 'snowBall', # The password for the database user
@@ -145,4 +145,4 @@
145145
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
146146

147147
# For production, collect static files to this directory
148-
# STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # Directory where collectstatic will gather static files
148+
# STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') # Directory where collectstatic will gather static files

0 commit comments

Comments
 (0)