Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-notes-api
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-notes-api
Commits
fdb3abe3
Commit
fdb3abe3
authored
Nov 27, 2014
by
Oleg Marshev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move annottaor-store overwrite to django settings.
parent
9dc382f6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
12 deletions
+11
-12
notesapi/__init__.py
+0
-2
notesserver/client.py
+0
-10
notesserver/settings/dev.py
+5
-0
notesserver/settings/test.py
+6
-0
No files found.
notesapi/__init__.py
View file @
fdb3abe3
from
notesserver
import
client
client
.
set_es_settings
()
notesserver/client.py
deleted
100644 → 0
View file @
9dc382f6
from
django.conf
import
settings
from
annotator
import
es
def
set_es_settings
():
"""
Overwrite default annotator-store elasticsearch settings.
"""
es
.
host
=
getattr
(
settings
,
'ELASTICSEARCH_URL'
,
'http://localhost:9200'
)
es
.
index
=
getattr
(
settings
,
'ELASTICSEARCH_INDEX'
,
'edx-notes'
)
notesserver/settings/dev.py
View file @
fdb3abe3
from
annotator
import
es
from
.common
import
*
from
.common
import
*
DEBUG
=
True
DEBUG
=
True
ELASTICSEARCH_URL
=
'http://127.0.0.1:9200'
ELASTICSEARCH_URL
=
'http://127.0.0.1:9200'
ELASTICSEARCH_INDEX
=
'edx-notes-dev'
ELASTICSEARCH_INDEX
=
'edx-notes-dev'
# Overwrite default annotator-store elasticsearch settings.
es
.
host
=
ELASTICSEARCH_URL
es
.
index
=
ELASTICSEARCH_INDEX
notesserver/settings/test.py
View file @
fdb3abe3
from
annotator
import
es
from
.common
import
*
from
.common
import
*
DATABASES
=
{
DATABASES
=
{
...
@@ -12,3 +13,8 @@ INSTALLED_APPS += ('django_nose',)
...
@@ -12,3 +13,8 @@ INSTALLED_APPS += ('django_nose',)
ELASTICSEARCH_URL
=
'http://127.0.0.1:9200'
ELASTICSEARCH_URL
=
'http://127.0.0.1:9200'
ELASTICSEARCH_INDEX
=
'edx-notes-test'
ELASTICSEARCH_INDEX
=
'edx-notes-test'
# Overwrite default annotator-store elasticsearch settings.
es
.
host
=
ELASTICSEARCH_URL
es
.
index
=
ELASTICSEARCH_INDEX
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