Skip to content
This repository has been archived by the owner on Jan 13, 2019. It is now read-only.

Commit

Permalink
Add MySQL option to databases
Browse files Browse the repository at this point in the history
  • Loading branch information
tmochida committed Mar 7, 2016
1 parent be238f9 commit cdd9e7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Django==1.7
Pillow==2.4.0
mysqlclient==1.3.7
psycopg2==2.5.3
pystache==0.5.4
10 changes: 10 additions & 0 deletions upe/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,22 @@

DATABASES = {
'default': {
#'postgres': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'upe_db',
'USER': 'admin',
'PASSWORD': 'littlewhale',
'HOST': '127.0.0.1',
'PORT': '5432',
},
#'default': {
'mysql': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'upe_db',
'USER': 'admin',
'PASSWORD': 'littlewhale',
'HOST': '127.0.0.1',
'PORT': '3306',
}
}

Expand Down

0 comments on commit cdd9e7a

Please sign in to comment.