Skip to content

Commit

Permalink
Moved authentication info to secrets.py and created .gitignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennereed committed Mar 5, 2014
1 parent 3f72da3 commit 5c5c98e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
secrets.py
11 changes: 7 additions & 4 deletions mysite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
import secrets

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os

BASE_DIR = os.path.dirname(os.path.dirname(__file__))

gettext = lambda s: s
Expand All @@ -28,7 +30,7 @@
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '0!vdm@wj&wl$i@)9+m40+xw642v^l1y_&fhfh9)ri!r0bjw=)a'
SECRET_KEY = secrets.SECRET_KEY

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
Expand Down Expand Up @@ -91,11 +93,11 @@
'USER': 'webdev', # 'webdev' is the user for the local development server

# TACC SETTINGS
#'PASSWORD': 'N9n8CmHg', # password for local postgres server
#'HOST': 'paleocore-qa.tacc.utexas.edu', # for local development server
'PASSWORD': secrets.WEBDEV_PASSWORD, # password for local postgres server
'HOST': secrets.WEBDEV_HOST, # for local development server

# LOCAL SETTINGS
'HOST': 'localhost'
#'HOST': 'localhost'
}
}

Expand All @@ -118,6 +120,7 @@
STATIC_URL = '/static/' # See also STATIC_ROOT entry in Django Fiber section
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]


# Path and URL for user uploaded media files


Expand Down

0 comments on commit 5c5c98e

Please sign in to comment.