Skip to content

Commit

Permalink
Merge branch 'master' into john/0.4-lpo-performance-boost
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbaldwin committed Dec 10, 2020
2 parents c2e6f69 + 51ca5b1 commit 8bf3bf9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
7 changes: 7 additions & 0 deletions devsite/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
# Django development debug mode
DEBUG=true

# Set a database to use with devsite
# The default database is SQLite and assigned in devsite/settings.py
# Use this specific string if you want to run Figures with MySQL Docker
# For more details, read the django-environ README
# https://github.com/joke2k/django-environ/blob/v0.4.5/README.rst
DATABASE_URL=mysql://figures_user:[email protected]:3306/figures-db

# Set which expected Open edX release mocks for devsite to use.
# Valid options are: "GINKGO", "HAWTHORN", "JUNIPER"
#
Expand Down
25 changes: 13 additions & 12 deletions devsite/devsite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,20 +160,21 @@

WSGI_APPLICATION = 'devsite.wsgi.application'

# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases

# Database setting
# To select a different database, such as MySQL, add the database url string to
# as 'DATABASE_URL=<database url string>' in the devsite/.env file
#
# Refs:
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
# https://github.com/joke2k/django-environ/tree/v0.4.5

DEFAULT_SQLITE_DB_URL = os.path.join(DEVSITE_BASE_DIR,
'figures-{release}-db.sqlite3'.format(
release=OPENEDX_RELEASE.lower()))

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(DEVSITE_BASE_DIR,
'figures-{release}-db.sqlite3'.format(
release=OPENEDX_RELEASE.lower())),
'USER': '',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
'default': env.db(default=DEFAULT_SQLITE_DB_URL)
}

LOCALE_PATHS = [
Expand Down

0 comments on commit 8bf3bf9

Please sign in to comment.