Skip to content

Commit

Permalink
database info in secret file
Browse files Browse the repository at this point in the history
  • Loading branch information
JeltevanBoheemen committed Jul 20, 2018
1 parent f6b82f8 commit ec66064
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -27,3 +27,4 @@ htmlcov/
### Password protection
timealign/settings.py
timealign/settings.py
timealign/settings_secret.py
13 changes: 2 additions & 11 deletions timealign/settings.py
Expand Up @@ -10,6 +10,7 @@
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
from settings_secret import *

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand Down Expand Up @@ -89,17 +90,7 @@
# https://docs.djangoproject.com/en/1.11/ref/settings/#databases

DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.sqlite3',
# 'NAME': 'timealign.sqlite3',
# },
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'tint',
'USER': 'root',
'PASSWORD': 'wisql1',
'HOST': 'localhost'
}
'default': user_db,
}


Expand Down

0 comments on commit ec66064

Please sign in to comment.