Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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
edx-ora2
Commits
cae90bc1
Commit
cae90bc1
authored
Nov 13, 2015
by
Usman Khalid
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #776 from edx/usman/remove-django-celery
Remove django-celery
parents
50f16be0
6612bff4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
15 deletions
+13
-15
requirements/base.txt
+1
-3
settings/base.py
+11
-11
setup.py
+1
-1
No files found.
requirements/base.txt
View file @
cae90bc1
...
...
@@ -12,9 +12,7 @@ git+https://github.com/edx/edx-submissions.git@muzaffar/upgrage-django-1.8#egg=e
boto>=2.32.1,<3.0.0
celery==3.1.18
defusedxml==0.4.1
#django>=1.8,<1.9
django==1.8.5
django-celery==3.1.16
django>=1.8,<1.9
django-extensions==1.5.9
django-model-utils==2.3.1
djangorestframework>=3.1,<3.3
...
...
settings/base.py
View file @
cae90bc1
...
...
@@ -3,7 +3,7 @@ Base settings for ORA2.
"""
import
os
import
sys
from
celery
import
Celery
DEBUG
=
True
TEMPLATE_DEBUG
=
DEBUG
...
...
@@ -121,7 +121,6 @@ INSTALLED_APPS = (
# Third party
'django_extensions'
,
'djcelery'
,
# XBlock
'workbench'
,
...
...
@@ -150,13 +149,14 @@ CACHES = {
BASE_DIR
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
os
.
path
.
dirname
(
__file__
)))
# Celery configuration
# Note: Version 3.1 of Celery includes Django support, but since we're using
# version 3.0 (same as edx-platform), we need to use an external library.
import
djcelery
djcelery
.
setup_loader
()
# Celery initialization and configuration
# We run Celery in "always eager" mode in the test suite and local dev,
# which executes tasks synchronously instead of using the task queue.
CELERY_ALWAYS_EAGER
=
True
CELERY_EAGER_PROPAGATES_EXCEPTIONS
=
True
class
Config
:
# We run Celery in "always eager" mode in the test suite and local dev,
# which executes tasks synchronously instead of using the task queue.
CELERY_ALWAYS_EAGER
=
True
CELERY_EAGER_PROPAGATES_EXCEPTIONS
=
True
APP
=
Celery
()
APP
.
config_from_object
(
Config
)
APP
.
autodiscover_tasks
(
lambda
:
INSTALLED_APPS
)
setup.py
View file @
cae90bc1
...
...
@@ -42,7 +42,7 @@ def load_requirements(*requirements_paths):
setup
(
name
=
'ora2'
,
version
=
'0.2.
1
'
,
version
=
'0.2.
2
'
,
author
=
'edX'
,
url
=
'http://github.com/edx/edx-ora2'
,
description
=
'edx-ora2'
,
...
...
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