Skip to content

Commit

Permalink
Added mysettings to hide the personal username/password etc settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitj committed Apr 14, 2015
1 parent 606313b commit dc4b24b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PharmaERP/mysettings.py
*~
*.pyc
*migrations/*
*migrations/*
3 changes: 3 additions & 0 deletions PharmaERP/mysettings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DBNAME='pf'
USERNAME='root'
PASSWORD='1234'
7 changes: 4 additions & 3 deletions PharmaERP/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
from mysettings import *
BASE_DIR = os.path.dirname(os.path.dirname(__file__))


Expand Down Expand Up @@ -66,9 +67,9 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'pf',
'USER': 'root',
'PASSWORD': '1234',
'NAME': DBNAME,
'USER': USERNAME,
'PASSWORD': PASSWORD,
}
}

Expand Down

0 comments on commit dc4b24b

Please sign in to comment.