This repository has been archived by the owner on Feb 18, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use dj-database-url for database settings.
- Loading branch information
Showing
2 changed files
with
12 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
import dj_database_url | ||
|
||
import private | ||
from gelato.admin.settings import * | ||
|
||
HOSTNAME='marketplace-admin-dev.allizom.org' | ||
DOMAIN=HOSTNAME | ||
HOSTNAME = 'marketplace-admin-dev.allizom.org' | ||
DOMAIN = HOSTNAME | ||
SITE_URL = 'http://%s' % DOMAIN | ||
STATIC_URL = SITE_URL | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'mysql_pymysql', | ||
'NAME': private.DATABASES_DEFAULT_NAME, | ||
'HOST': private.DATABASES_DEFAULT_HOST, | ||
'PORT': private.DATABASES_DEFAULT_PORT, | ||
'USER': private.DATABASES_DEFAULT_USER, | ||
'PASSWORD': private.DATABASES_DEFAULT_PASSWORD, | ||
'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'}, | ||
'TEST_CHARSET': 'utf8', | ||
'TEST_COLLATION': 'utf8_general_ci', | ||
}, | ||
} | ||
DATABASES = {'default': dj_database_url.parse(private.DATABASES_DEFAULT_URL)} | ||
DATABASES.update({ | ||
'ENGINE': 'mysql_pymysql', | ||
'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'}, | ||
'TEST_CHARSET': 'utf8', | ||
'TEST_COLLATION': 'utf8_general_ci', | ||
}) | ||
|
||
SESSION_COOKIE_DOMAIN = ".%s" % HOSTNAME |