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
e14a2dd4
Commit
e14a2dd4
authored
Mar 27, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove path appending commands in settings
parent
73de15c4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
7 deletions
+5
-7
anserv/an_evt/router.py
+1
-1
anserv/settings.py
+0
-5
install.txt
+4
-1
No files found.
anserv/an_evt/router.py
View file @
e14a2dd4
...
@@ -8,7 +8,7 @@ class DatabaseRouter(object):
...
@@ -8,7 +8,7 @@ class DatabaseRouter(object):
def
db_for_read
(
self
,
model
,
**
hints
):
def
db_for_read
(
self
,
model
,
**
hints
):
if
model
.
_meta
.
app_label
in
[
'student'
,
'courseware'
,
'sites'
,
'contenttypes'
]:
if
model
.
_meta
.
app_label
in
[
'student'
,
'courseware'
,
'sites'
,
'contenttypes'
]:
return
'default'
return
'default'
elif
model
.
_meta
.
app_label
in
[
'an_evt'
,
'modules'
,
'cronjobs'
,
'celery'
,
'sessions'
,
'auth'
,
'django_cache'
]:
elif
model
.
_meta
.
app_label
in
[
'an_evt'
,
'modules'
,
'cronjobs'
,
'celery'
,
'sessions'
,
'auth'
,
'django_cache'
,
'south'
]:
return
'local'
return
'local'
else
:
else
:
log
.
error
(
"ERROR. We need to explicitly route: {0}"
.
format
(
model
.
_meta
.
app_label
))
log
.
error
(
"ERROR. We need to explicitly route: {0}"
.
format
(
model
.
_meta
.
app_label
))
...
...
anserv/settings.py
View file @
e14a2dd4
...
@@ -11,11 +11,6 @@ DJANGOAPPS_PATH = "{0}/{1}/{2}".format(MITX_PATH, "lms", "djangoapps")
...
@@ -11,11 +11,6 @@ DJANGOAPPS_PATH = "{0}/{1}/{2}".format(MITX_PATH, "lms", "djangoapps")
LMS_LIB_PATH
=
"{0}/{1}/{2}"
.
format
(
MITX_PATH
,
"lms"
,
"lib"
)
LMS_LIB_PATH
=
"{0}/{1}/{2}"
.
format
(
MITX_PATH
,
"lms"
,
"lib"
)
COMMON_PATH
=
"{0}/{1}/{2}"
.
format
(
MITX_PATH
,
"common"
,
"djangoapps"
)
COMMON_PATH
=
"{0}/{1}/{2}"
.
format
(
MITX_PATH
,
"common"
,
"djangoapps"
)
sys
.
path
.
append
(
MITX_PATH
)
sys
.
path
.
append
(
DJANGOAPPS_PATH
)
sys
.
path
.
append
(
LMS_LIB_PATH
)
sys
.
path
.
append
(
COMMON_PATH
)
TIME_BETWEEN_DATA_REGENERATION
=
datetime
.
timedelta
(
minutes
=
1
)
TIME_BETWEEN_DATA_REGENERATION
=
datetime
.
timedelta
(
minutes
=
1
)
#Initialize celery
#Initialize celery
...
...
install.txt
View file @
e14a2dd4
...
@@ -2,6 +2,9 @@ git clone git@github.com:MITx/analytics-experiments.git
...
@@ -2,6 +2,9 @@ git clone git@github.com:MITx/analytics-experiments.git
cd analytics-experiments
cd analytics-experiments
sudo xargs -a apt-packages.txt apt-get install
sudo xargs -a apt-packages.txt apt-get install
git checkout vik/add-htsql
git checkout vik/add-htsql
pip install -r requirements.txt
pip install virtualenv
sudo virtualenv /opt/edx
source /opt/edx/bin/activate
sudo pip install -r requirements.txt
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