Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
a1db3ea8
Commit
a1db3ea8
authored
Sep 01, 2016
by
Clinton Blackburn
Committed by
GitHub
Sep 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #292 from edx/clintonb/query-optimization
Query Optimizations
parents
386bd8c5
97c7c193
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
31 deletions
+45
-31
course_discovery/settings/base.py
+7
-0
course_discovery/settings/devstack.py
+1
-13
course_discovery/settings/local.py
+1
-18
course_discovery/settings/shared/__init__.py
+0
-0
course_discovery/settings/shared/debug_toolbar.py
+34
-0
course_discovery/settings/test.py
+2
-0
No files found.
course_discovery/settings/base.py
View file @
a1db3ea8
...
...
@@ -348,6 +348,9 @@ SWAGGER_SETTINGS = {
'permission_denied_handler'
:
'course_discovery.apps.api.views.api_docs_permission_denied_handler'
}
# Haystack configuration (http://django-haystack.readthedocs.io/en/v2.5.0/settings.html)
HAYSTACK_ITERATOR_LOAD_PER_QUERY
=
200
HAYSTACK_CONNECTIONS
=
{
'default'
:
{
'ENGINE'
:
'course_discovery.apps.edx_haystack_extensions.backends.EdxElasticsearchSearchEngine'
,
...
...
@@ -366,3 +369,7 @@ SITE_ID = 1
COMMENTS_APP
=
'course_discovery.apps.publisher_comments'
TAGGIT_CASE_INSENSITIVE
=
True
# django-solo configuration (https://github.com/lazybird/django-solo#settings)
SOLO_CACHE
=
'default'
SOLO_CACHE_TIMEOUT
=
3600
course_discovery/settings/devstack.py
View file @
a1db3ea8
from
course_discovery.settings.production
import
*
from
course_discovery.settings.shared.debug_toolbar
import
*
DEBUG
=
True
...
...
@@ -7,19 +8,6 @@ LOGGING['handlers']['local'] = {
'class'
:
'logging.NullHandler'
,
}
# TOOLBAR CONFIGURATION
# See: http://django-debug-toolbar.readthedocs.org/en/latest/installation.html
if
os
.
environ
.
get
(
'ENABLE_DJANGO_TOOLBAR'
,
False
):
INSTALLED_APPS
+=
[
'debug_toolbar'
,
]
MIDDLEWARE_CLASSES
+=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,
)
DEBUG_TOOLBAR_PATCH_SETTINGS
=
False
INTERNAL_IPS
=
(
'127.0.0.1'
,)
# END TOOLBAR CONFIGURATION
...
...
course_discovery/settings/local.py
View file @
a1db3ea8
from
course_discovery.settings.base
import
*
from
course_discovery.settings.shared.debug_toolbar
import
*
DEBUG
=
True
...
...
@@ -30,24 +31,6 @@ DATABASES = {
EMAIL_BACKEND
=
'django.core.mail.backends.console.EmailBackend'
# END EMAIL CONFIGURATION
# TOOLBAR CONFIGURATION
# See: http://django-debug-toolbar.readthedocs.org/en/latest/installation.html
if
os
.
environ
.
get
(
'ENABLE_DJANGO_TOOLBAR'
,
False
):
INSTALLED_APPS
+=
[
'debug_toolbar'
,
'elastic_panel'
,
]
MIDDLEWARE_CLASSES
+=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,
)
DEBUG_TOOLBAR_PATCH_SETTINGS
=
False
DEBUG_TOOLBAR_PANELS
=
[
'elastic_panel.panel.ElasticDebugPanel'
]
INTERNAL_IPS
=
(
'127.0.0.1'
,)
# END TOOLBAR CONFIGURATION
...
...
course_discovery/settings/shared/__init__.py
0 → 100644
View file @
a1db3ea8
course_discovery/settings/shared/debug_toolbar.py
0 → 100644
View file @
a1db3ea8
"""
Django Debug Toolbar settings.
http://django-debug-toolbar.readthedocs.org/en/latest/installation.html
"""
from
course_discovery.settings.base
import
*
if
os
.
environ
.
get
(
'ENABLE_DJANGO_TOOLBAR'
,
False
):
INSTALLED_APPS
+=
[
'debug_toolbar'
,
'elastic_panel'
,
]
MIDDLEWARE_CLASSES
+=
(
'debug_toolbar.middleware.DebugToolbarMiddleware'
,
)
DEBUG_TOOLBAR_PATCH_SETTINGS
=
False
DEBUG_TOOLBAR_PANELS
=
[
'debug_toolbar.panels.versions.VersionsPanel'
,
'debug_toolbar.panels.timer.TimerPanel'
,
'debug_toolbar.panels.settings.SettingsPanel'
,
'debug_toolbar.panels.headers.HeadersPanel'
,
'debug_toolbar.panels.request.RequestPanel'
,
'debug_toolbar.panels.sql.SQLPanel'
,
'debug_toolbar.panels.staticfiles.StaticFilesPanel'
,
'debug_toolbar.panels.templates.TemplatesPanel'
,
'debug_toolbar.panels.cache.CachePanel'
,
'debug_toolbar.panels.signals.SignalsPanel'
,
'debug_toolbar.panels.logging.LoggingPanel'
,
'debug_toolbar.panels.redirects.RedirectsPanel'
,
'elastic_panel.panel.ElasticDebugPanel'
]
course_discovery/settings/test.py
View file @
a1db3ea8
...
...
@@ -49,3 +49,5 @@ DEFAULT_PARTNER_ID = 1
# Enable offline compression of CSS/JS
COMPRESS_ENABLED
=
True
COMPRESS_OFFLINE
=
True
SOLO_CACHE
=
None
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment