summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalaparthy Adityachandra2020-05-21 13:19:21 +0530
committerGitHub2020-05-21 13:19:21 +0530
commit8d7f6c7cb56f6ef8116b229573371025c1dbd83e (patch)
tree6b4161aec87e4dc864fa386f46543383b61774a4
parent9aeae2b9c9fc22a83450ddbae49512318c032511 (diff)
parentf793b6bec01e1a3c4130c87e9d4ad3e2107eb692 (diff)
downloadonline_test-8d7f6c7cb56f6ef8116b229573371025c1dbd83e.tar.gz
online_test-8d7f6c7cb56f6ef8116b229573371025c1dbd83e.tar.bz2
online_test-8d7f6c7cb56f6ef8116b229573371025c1dbd83e.zip
Merge pull request #713 from FOSSEE/fix_celery
Rename celery.py to celery_settings and change imports
-rw-r--r--online_test/__init__.py2
-rw-r--r--online_test/celery_settings.py (renamed from online_test/celery.py)2
-rw-r--r--yaksh/test_views.py2
3 files changed, 2 insertions, 4 deletions
diff --git a/online_test/__init__.py b/online_test/__init__.py
index 642bfd0..e5ad12d 100644
--- a/online_test/__init__.py
+++ b/online_test/__init__.py
@@ -1,6 +1,6 @@
from __future__ import absolute_import, unicode_literals
-from online_test.celery import app as celery_app
+from online_test.celery_settings import app as celery_app
__all__ = ('celery_app',)
diff --git a/online_test/celery.py b/online_test/celery_settings.py
index 6868b89..059bb87 100644
--- a/online_test/celery.py
+++ b/online_test/celery_settings.py
@@ -1,5 +1,3 @@
-from __future__ import absolute_import, unicode_literals
-
import os
from django.conf import settings
from celery import Celery
diff --git a/yaksh/test_views.py b/yaksh/test_views.py
index 1418ee0..24750e3 100644
--- a/yaksh/test_views.py
+++ b/yaksh/test_views.py
@@ -35,7 +35,7 @@ from yaksh.models import (
from yaksh.views import add_as_moderator, course_forum, post_comments
from yaksh.forms import PostForm, CommentForm
from yaksh.decorators import user_has_profile
-from online_test.celery import app
+from online_test.celery_settings import app
from notifications_plugin.models import Notification