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
4ecf27bd
Commit
4ecf27bd
authored
Nov 20, 2015
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use course_discovery in preference to edx_course_discovery
parent
771f7ee6
Hide whitespace changes
Inline
Side-by-side
Showing
42 changed files
with
45 additions
and
45 deletions
+45
-45
Makefile
+4
-4
README.rst
+5
-5
course_discovery/__init__.py
+0
-0
course_discovery/apps/__init__.py
+0
-0
course_discovery/apps/api/__init__.py
+0
-0
course_discovery/apps/api/models.py
+0
-0
course_discovery/apps/api/serializers.py
+0
-0
course_discovery/apps/api/tests/__init__.py
+0
-0
course_discovery/apps/api/urls.py
+1
-1
course_discovery/apps/api/v1/__init__.py
+0
-0
course_discovery/apps/api/v1/tests/__init__.py
+0
-0
course_discovery/apps/api/v1/urls.py
+0
-0
course_discovery/apps/api/v1/views.py
+0
-0
course_discovery/apps/core/__init__.py
+0
-0
course_discovery/apps/core/admin.py
+1
-1
course_discovery/apps/core/constants.py
+0
-0
course_discovery/apps/core/context_processors.py
+0
-0
course_discovery/apps/core/migrations/0001_initial.py
+0
-0
course_discovery/apps/core/migrations/__init__.py
+0
-0
course_discovery/apps/core/models.py
+0
-0
course_discovery/apps/core/tests/__init__.py
+0
-0
course_discovery/apps/core/tests/test_context_processors.py
+1
-1
course_discovery/apps/core/tests/test_models.py
+1
-1
course_discovery/apps/core/tests/test_views.py
+1
-1
course_discovery/apps/core/views.py
+2
-2
course_discovery/conf/locale/config.yaml
+0
-0
course_discovery/settings/__init__.py
+0
-0
course_discovery/settings/base.py
+9
-9
course_discovery/settings/local.py
+1
-1
course_discovery/settings/private.py.example
+0
-0
course_discovery/settings/production.py
+2
-2
course_discovery/settings/test.py
+1
-1
course_discovery/settings/utils.py
+0
-0
course_discovery/static/.keep
+0
-0
course_discovery/templates/.keep
+0
-0
course_discovery/urls.py
+3
-3
course_discovery/wsgi.py
+2
-2
docs/Makefile
+4
-4
docs/conf.py
+2
-2
docs/getting_started.rst
+3
-3
docs/index.rst
+1
-1
manage.py
+1
-1
No files found.
Makefile
View file @
4ecf27bd
...
...
@@ -35,12 +35,12 @@ requirements:
pip install
-qr
requirements.txt
--exists-action
w
test
:
clean
coverage run ./manage.py
test
edx_course_discovery
--settings
=
edx_
course_discovery.settings.test
coverage run ./manage.py
test
course_discovery
--settings
=
course_discovery.settings.test
coverage report
quality
:
pep8
--config
=
.pep8
edx_
course_discovery
*
.py
pylint
--rcfile
=
pylintrc
edx_
course_discovery
*
.py
pep8
--config
=
.pep8 course_discovery
*
.py
pylint
--rcfile
=
pylintrc course_discovery
*
.py
validate
:
test quality
...
...
@@ -55,7 +55,7 @@ extract_translations:
python manage.py makemessages
-l
en
-v1
-d
djangojs
dummy_translations
:
cd
edx_
course_discovery
&&
i18n_tool dummy
cd
course_discovery
&&
i18n_tool dummy
compile_translations
:
python manage.py compilemessages
...
...
README.rst
View file @
4ecf27bd
...
...
@@ -4,11 +4,11 @@ __ http://code.edx.org/
Course Discovery Service |Travis|_ |Coveralls|_
=====================================================
.. |Travis| image:: https://travis-ci.org/edx/
edx_course_
discovery.svg?branch=master
.. _Travis: https://travis-ci.org/edx/
edx_course_
discovery
.. |Travis| image:: https://travis-ci.org/edx/
course-
discovery.svg?branch=master
.. _Travis: https://travis-ci.org/edx/
course-
discovery
.. |Coveralls| image:: https://coveralls.io/repos/edx/
edx_course_
discovery/badge.svg?branch=master
.. _Coveralls: https://coveralls.io/r/edx/
edx_course_
discovery?branch=master
.. |Coveralls| image:: https://coveralls.io/repos/edx/
course-
discovery/badge.svg?branch=master
.. _Coveralls: https://coveralls.io/r/edx/
course-
discovery?branch=master
The ``README.rst`` file should start with a brief description of the repository,
which sets it in the context of other repositories under the ``edx``
...
...
@@ -29,7 +29,7 @@ Documentation (please modify)
The ``README.rst`` should include a link to the developer documentation. This documentation should be hosted on
Read the Docs. An example statement and link are below.
The docs for Course Discovery Service are on Read the Docs: https://
edx_course_
discovery.readthedocs.org.
The docs for Course Discovery Service are on Read the Docs: https://
open-edx-course-
discovery.readthedocs.org.
License
-------
...
...
edx_
course_discovery/__init__.py
→
course_discovery/__init__.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/__init__.py
→
course_discovery/apps/__init__.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/api/__init__.py
→
course_discovery/apps/api/__init__.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/api/models.py
→
course_discovery/apps/api/models.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/api/serializers.py
→
course_discovery/apps/api/serializers.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/api/tests/__init__.py
→
course_discovery/apps/api/tests/__init__.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/api/urls.py
→
course_discovery/apps/api/urls.py
View file @
4ecf27bd
...
...
@@ -7,5 +7,5 @@ contain namespaces for the active versions of the API.
from
django.conf.urls
import
url
,
include
urlpatterns
=
[
url
(
r'^v1/'
,
include
(
'
edx_
course_discovery.apps.api.v1.urls'
,
namespace
=
'v1'
)),
url
(
r'^v1/'
,
include
(
'course_discovery.apps.api.v1.urls'
,
namespace
=
'v1'
)),
]
edx_
course_discovery/apps/api/v1/__init__.py
→
course_discovery/apps/api/v1/__init__.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/api/v1/tests/__init__.py
→
course_discovery/apps/api/v1/tests/__init__.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/api/v1/urls.py
→
course_discovery/apps/api/v1/urls.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/api/v1/views.py
→
course_discovery/apps/api/v1/views.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/core/__init__.py
→
course_discovery/apps/core/__init__.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/core/admin.py
→
course_discovery/apps/core/admin.py
View file @
4ecf27bd
...
...
@@ -4,7 +4,7 @@ from django.contrib import admin
from
django.contrib.auth.admin
import
UserAdmin
from
django.utils.translation
import
ugettext_lazy
as
_
from
edx_
course_discovery.apps.core.models
import
User
from
course_discovery.apps.core.models
import
User
class
CustomUserAdmin
(
UserAdmin
):
...
...
edx_
course_discovery/apps/core/constants.py
→
course_discovery/apps/core/constants.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/core/context_processors.py
→
course_discovery/apps/core/context_processors.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/core/migrations/0001_initial.py
→
course_discovery/apps/core/migrations/0001_initial.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/core/migrations/__init__.py
→
course_discovery/apps/core/migrations/__init__.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/core/models.py
→
course_discovery/apps/core/models.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/core/tests/__init__.py
→
course_discovery/apps/core/tests/__init__.py
View file @
4ecf27bd
File moved
edx_
course_discovery/apps/core/tests/test_context_processors.py
→
course_discovery/apps/core/tests/test_context_processors.py
View file @
4ecf27bd
...
...
@@ -2,7 +2,7 @@
from
django.test
import
TestCase
,
override_settings
,
RequestFactory
from
edx_
course_discovery.apps.core.context_processors
import
core
from
course_discovery.apps.core.context_processors
import
core
PLATFORM_NAME
=
'Test Platform'
...
...
edx_
course_discovery/apps/core/tests/test_models.py
→
course_discovery/apps/core/tests/test_models.py
View file @
4ecf27bd
...
...
@@ -4,7 +4,7 @@ from django.test import TestCase
from
django_dynamic_fixture
import
G
from
social.apps.django_app.default.models
import
UserSocialAuth
from
edx_
course_discovery.apps.core.models
import
User
from
course_discovery.apps.core.models
import
User
# pylint: disable=no-member
...
...
edx_
course_discovery/apps/core/tests/test_views.py
→
course_discovery/apps/core/tests/test_views.py
View file @
4ecf27bd
...
...
@@ -9,7 +9,7 @@ from django.test.utils import override_settings
from
django.utils.encoding
import
force_text
import
mock
from
edx_
course_discovery.apps.core.constants
import
Status
from
course_discovery.apps.core.constants
import
Status
User
=
get_user_model
()
...
...
edx_
course_discovery/apps/core/views.py
→
course_discovery/apps/core/views.py
View file @
4ecf27bd
...
...
@@ -10,7 +10,7 @@ from django.http import Http404
from
django.shortcuts
import
redirect
from
django.views.generic
import
View
from
edx_
course_discovery.apps.core.constants
import
Status
from
course_discovery.apps.core.constants
import
Status
logger
=
logging
.
getLogger
(
__name__
)
User
=
get_user_model
()
...
...
@@ -27,7 +27,7 @@ def health(_):
HttpResponse: 503 if the service is unavailable, with JSON data indicating the health of each required service
Example:
>>> response = requests.get('https://
edx_course_
discovery.edx.org/health')
>>> response = requests.get('https://
course-
discovery.edx.org/health')
>>> response.status_code
200
>>> response.content
...
...
edx_
course_discovery/conf/locale/config.yaml
→
course_discovery/conf/locale/config.yaml
View file @
4ecf27bd
File moved
edx_
course_discovery/settings/__init__.py
→
course_discovery/settings/__init__.py
View file @
4ecf27bd
File moved
edx_
course_discovery/settings/base.py
→
course_discovery/settings/base.py
View file @
4ecf27bd
...
...
@@ -8,7 +8,7 @@ root = lambda *x: join(abspath(PROJECT_ROOT), *x)
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
os
.
environ
.
get
(
'
EDX_
COURSE_DISCOVERY_SECRET_KEY'
,
'insecure-secret-key'
)
SECRET_KEY
=
os
.
environ
.
get
(
'COURSE_DISCOVERY_SECRET_KEY'
,
'insecure-secret-key'
)
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
False
...
...
@@ -33,8 +33,8 @@ THIRD_PARTY_APPS = (
)
PROJECT_APPS
=
(
'
edx_
course_discovery.apps.core'
,
'
edx_
course_discovery.apps.api'
,
'course_discovery.apps.core'
,
'course_discovery.apps.api'
,
)
INSTALLED_APPS
+=
THIRD_PARTY_APPS
...
...
@@ -53,10 +53,10 @@ MIDDLEWARE_CLASSES = (
'waffle.middleware.WaffleMiddleware'
,
)
ROOT_URLCONF
=
'
edx_
course_discovery.urls'
ROOT_URLCONF
=
'course_discovery.urls'
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION
=
'
edx_
course_discovery.wsgi.application'
WSGI_APPLICATION
=
'course_discovery.wsgi.application'
# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
...
...
@@ -126,7 +126,7 @@ TEMPLATES = [
'django.template.context_processors.static'
,
'django.template.context_processors.tz'
,
'django.contrib.messages.context_processors.messages'
,
'
edx_
course_discovery.apps.core.context_processors.core'
,
'course_discovery.apps.core.context_processors.core'
,
),
'debug'
:
True
,
# Django will only display debug pages if the global DEBUG setting is set to True.
}
...
...
@@ -139,9 +139,9 @@ TEMPLATES = [
# The purpose of customizing the cookie names is to avoid conflicts when
# multiple Django services are running behind the same hostname.
# Detailed information at: https://docs.djangoproject.com/en/dev/ref/settings/
SESSION_COOKIE_NAME
=
'
edx_
course_discovery_sessionid'
CSRF_COOKIE_NAME
=
'
edx_
course_discovery_csrftoken'
LANGUAGE_COOKIE_NAME
=
'
edx_
course_discovery_language'
SESSION_COOKIE_NAME
=
'course_discovery_sessionid'
CSRF_COOKIE_NAME
=
'course_discovery_csrftoken'
LANGUAGE_COOKIE_NAME
=
'course_discovery_language'
# END COOKIE CONFIGURATION
# AUTHENTICATION CONFIGURATION
...
...
edx_
course_discovery/settings/local.py
→
course_discovery/settings/local.py
View file @
4ecf27bd
from
edx_
course_discovery.settings.base
import
*
from
course_discovery.settings.base
import
*
DEBUG
=
True
...
...
edx_
course_discovery/settings/private.py.example
→
course_discovery/settings/private.py.example
View file @
4ecf27bd
File moved
edx_
course_discovery/settings/production.py
→
course_discovery/settings/production.py
View file @
4ecf27bd
from
os
import
environ
import
yaml
from
edx_
course_discovery.settings.base
import
*
from
edx_
course_discovery.settings.utils
import
get_env_setting
from
course_discovery.settings.base
import
*
from
course_discovery.settings.utils
import
get_env_setting
DEBUG
=
False
...
...
edx_
course_discovery/settings/test.py
→
course_discovery/settings/test.py
View file @
4ecf27bd
import
os
from
edx_
course_discovery.settings.base
import
*
from
course_discovery.settings.base
import
*
# TEST SETTINGS
...
...
edx_
course_discovery/settings/utils.py
→
course_discovery/settings/utils.py
View file @
4ecf27bd
File moved
edx_
course_discovery/static/.keep
→
course_discovery/static/.keep
View file @
4ecf27bd
File moved
edx_
course_discovery/templates/.keep
→
course_discovery/templates/.keep
View file @
4ecf27bd
File moved
edx_
course_discovery/urls.py
→
course_discovery/urls.py
View file @
4ecf27bd
"""
edx_
course_discovery URL Configuration
"""course_discovery URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
...
...
@@ -22,7 +22,7 @@ from django.contrib.auth.views import logout
from
django.core.urlresolvers
import
reverse_lazy
from
django.views.generic
import
RedirectView
from
edx_
course_discovery.apps.core
import
views
as
core_views
from
course_discovery.apps.core
import
views
as
core_views
admin
.
autodiscover
()
...
...
@@ -32,7 +32,7 @@ login = RedirectView.as_view(url=reverse_lazy('social:begin', args=['edx-oidc'])
urlpatterns
=
[
url
(
r'^admin/'
,
include
(
admin
.
site
.
urls
)),
url
(
r'^api/'
,
include
(
'
edx_
course_discovery.apps.api.urls'
,
namespace
=
'api'
)),
url
(
r'^api/'
,
include
(
'course_discovery.apps.api.urls'
,
namespace
=
'api'
)),
url
(
r'^api-auth/'
,
include
(
'rest_framework.urls'
,
namespace
=
'rest_framework'
)),
url
(
r'^auto_auth/$'
,
core_views
.
AutoAuth
.
as_view
(),
name
=
'auto_auth'
),
url
(
r'^health/$'
,
core_views
.
health
,
name
=
'health'
),
...
...
edx_
course_discovery/wsgi.py
→
course_discovery/wsgi.py
View file @
4ecf27bd
"""
WSGI config for
edx_
course_discovery.
WSGI config for course_discovery.
It exposes the WSGI callable as a module-level variable named ``application``.
...
...
@@ -13,7 +13,7 @@ from sys import path
SITE_ROOT
=
dirname
(
dirname
(
abspath
(
__file__
)))
path
.
append
(
SITE_ROOT
)
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"
edx_
course_discovery.settings.local"
)
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"course_discovery.settings.local"
)
from
django.core.wsgi
import
get_wsgi_application
...
...
docs/Makefile
View file @
4ecf27bd
...
...
@@ -87,9 +87,9 @@ qthelp:
@
echo
@
echo
"Build finished; now you can run "
qcollectiongenerator
" with the"
\
".qhcp project file in
$(BUILDDIR)
/qthelp, like this:"
@
echo
"# qcollectiongenerator
$(BUILDDIR)
/qthelp/
edx_
course_discovery.qhcp"
@
echo
"# qcollectiongenerator
$(BUILDDIR)
/qthelp/course_discovery.qhcp"
@
echo
"To view the help file:"
@
echo
"# assistant -collectionFile
$(BUILDDIR)
/qthelp/
edx_
course_discovery.qhc"
@
echo
"# assistant -collectionFile
$(BUILDDIR)
/qthelp/course_discovery.qhc"
applehelp
:
$(SPHINXBUILD)
-b
applehelp
$(ALLSPHINXOPTS)
$(BUILDDIR)
/applehelp
...
...
@@ -104,8 +104,8 @@ devhelp:
@
echo
@
echo
"Build finished."
@
echo
"To view the help file:"
@
echo
"# mkdir -p
$$
HOME/.local/share/devhelp/
edx_
course_discovery"
@
echo
"# ln -s
$(BUILDDIR)
/devhelp
$$
HOME/.local/share/devhelp/
edx_
course_discovery"
@
echo
"# mkdir -p
$$
HOME/.local/share/devhelp/course_discovery"
@
echo
"# ln -s
$(BUILDDIR)
/devhelp
$$
HOME/.local/share/devhelp/course_discovery"
@
echo
"# devhelp"
epub
:
...
...
docs/conf.py
View file @
4ecf27bd
...
...
@@ -172,7 +172,7 @@ html_static_path = ['_static']
# html_file_suffix = None
# Output file base name for HTML help builder.
htmlhelp_basename
=
'
edx_
course_discoverydoc'
htmlhelp_basename
=
'course_discoverydoc'
# -- Options for LaTeX output --------------------------------------------------
...
...
@@ -191,7 +191,7 @@ latex_elements = {
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents
=
[
(
'index'
,
'
edx_
course_discovery.tex'
,
u'Course Discovery Service Documentation'
,
(
'index'
,
'course_discovery.tex'
,
u'Course Discovery Service Documentation'
,
u'edX'
,
'manual'
),
]
...
...
docs/getting_started.rst
View file @
4ecf27bd
...
...
@@ -19,8 +19,8 @@ Dependencies can be installed via the command below.
Local/Private Settings
----------------------
When developing locally, it may be useful to have settings overrides that you do not wish to commit to the repository.
If you need such overrides, create a file :file:`
edx_
course_discovery/settings/private.py`. This file's values are
read by :file:`
edx_
course_discovery/settings/local.py`, but ignored by Git.
If you need such overrides, create a file :file:`course_discovery/settings/private.py`. This file's values are
read by :file:`course_discovery/settings/local.py`, but ignored by Git.
Configure edX OpenID Connect (OIDC)
...
...
@@ -47,7 +47,7 @@ A new OAuth 2.0 client can be created at ``http://127.0.0.1:8000/admin/oauth2/cl
8. Click :guilabel:`Save`.
Now that you have the client credentials, you can update your settings (ideally in
:file:`
edx_
course_discovery/settings/local.py`). The table below describes the relevant settings.
:file:`course_discovery/settings/local.py`). The table below describes the relevant settings.
+-----------------------------------------------------+----------------------------------------------------------------------------+--------------------------------------------------------------------------+
| Setting | Description | Value |
...
...
docs/index.rst
View file @
4ecf27bd
..
edx_
course_discovery documentation master file, created by
.. course_discovery documentation master file, created by
sphinx-quickstart on Sun Feb 17 11:46:20 2013.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
...
...
manage.py
View file @
4ecf27bd
...
...
@@ -8,7 +8,7 @@ import os
import
sys
if
__name__
==
"__main__"
:
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"
edx_
course_discovery.settings.local"
)
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"course_discovery.settings.local"
)
from
django.core.management
import
execute_from_command_line
...
...
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