Skip to content

Commit

Permalink
epio
Browse files Browse the repository at this point in the history
  • Loading branch information
tkopczuk committed Oct 27, 2011
1 parent 4bc654d commit 9cbde24
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion ATP_Performance_Test/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
'NAME': 'atp_performance_test', # Or path to database file if using sqlite3.
'USER': 'atp_performance_test', # Not used with sqlite3.
'PASSWORD': 'atp_performance_test', # Not used with sqlite3.
'HOST': 'ec2-50-16-63-26.compute-1.amazonaws.com', # Set to empty string for localhost. Not used with sqlite3.
'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3.
# 'PORT': '5433', # Default pgpool
# 'PORT': '5432', # Default PostgreSQL
'PORT': '6432', # Default pgBouncer
Expand All @@ -40,6 +40,18 @@
}
}

if os.environ.get("EPIO", false) == true:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'ATP_Performance_Test',
'USER': 'ATP_Performance_Test',
'PASSWORD': 'ATP_Performance_Test',
'HOST':os.environ.get("DATABASE_HOST","") ,
'PORT': '6432',
}
}

if os.environ.get("ATP_HOST", "") == "DOTCLOUD":
DATABASES = {
'default': {
Expand Down

0 comments on commit 9cbde24

Please sign in to comment.