Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
insights
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
insights
Commits
f3c5a8b3
Commit
f3c5a8b3
authored
Jul 21, 2013
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix to settings
parent
fb96a394
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
src/edinsights/settings.py
+20
-7
No files found.
src/edinsights/settings.py
View file @
f3c5a8b3
...
...
@@ -196,9 +196,23 @@ LOGGING = {
#initialize celery
import
djcelery
djcelery
.
setup_loader
()
#import the settings for celery from the edinsights module
from
edinsights.celerysettings_dev
import
*
# import django cache settings
from
edinsights.djangocachesettings_dev
import
*
\ No newline at end of file
#import the settings for celery from the edinsights module and for cache
try
:
from
celerysettings_dev
import
*
from
djangocachesettings_dev
import
*
except
:
# The code had the imports below. These fail when running test
# cases stand-alone. I think the above fixes this, but I'm
# leaving this in for now in case there are configurations I
# haven't thought of. If the exception is raised, remove this
# comment, remove the exception, and add a comment explaining
# when the second set of imports is necessary.
#
# If it's, say, October, and no one has run into the exception,
# we should kill the extra code.
#
# pmitros -- 21/July/2013.
raise
Exception
(
"Import failed. See instructions in settings.py"
)
from
edinsights.djangocachesettings_dev
import
*
from
edinsights.celerysettings_dev
import
*
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