Skip to content

Commit

Permalink
Set django database
Browse files Browse the repository at this point in the history
  • Loading branch information
HYXC committed Aug 28, 2017
1 parent 4637fe0 commit 4a5072c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.pyc
0*.py
16 changes: 13 additions & 3 deletions blackjack/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,24 @@
# Database
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases

#DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
# }
#}

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'ENGINE': 'django.db.backends.mysql',
'NAME': 'blackjack',
'USER': 'ylhb',
'PASSWORD': '111abc',
'HOST': 'localhost',
'PORT': '3306',
}
}


# Password validation
# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators

Expand Down

0 comments on commit 4a5072c

Please sign in to comment.