Skip to content

Commit

Permalink
Flush out onebox support.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericholscher committed Oct 19, 2012
1 parent a2420f2 commit a1d0912
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ media/static
readthedocs/rtd_tests/tests/builds
user_builds
user_uploads
whoosh_index
xml_output
9 changes: 9 additions & 0 deletions onebox_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-r pip_requirements.txt
dnspython
gunicorn
#For resizing images
pillow
pyquery
python-memcached
whoosh

33 changes: 28 additions & 5 deletions readthedocs/settings/onebox.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,46 @@
from .sqlite import *
from .base import *

REDIS = {
'host': 'localhost',
'port': 6379,
'db': 0,
}
BROKER_URL = 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
CELERY_ALWAYS_EAGER = False

HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.solr_backend.SolrEngine',
'URL': 'http://localhost:8983/solr',
}
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
'PATH': os.path.join(SITE_ROOT, 'whoosh_index'),
},
}

CACHE_BACKEND = 'memcached://localhost:11211/'
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"

SLUMBER_API_HOST = 'http://localhost:8000'
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTOCOL", "https")
SESSION_COOKIE_DOMAIN = None

TEST_RUNNER = 'xmlrunner.extra.djangotestrunner.XMLTestRunner'
TEST_OUTPUT_VERBOSE = True
TEST_OUTPUT_DESCRIPTIONS = True
TEST_OUTPUT_DIR = os.path.join(SITE_ROOT, 'xml_output')

SLUMBER_USERNAME = 'test'
SLUMBER_PASSWORD = 'test'
SLUMBER_API_HOST = 'http://localhost:8000'

WEBSOCKET_HOST = 'localhost:8088'

IMPORT_EXTERNAL_DATA = False
DONT_HIT_DB = False
#PRODUCTION_URL = 'readthedocs.org'
#USE_SUBDOMAIN = True



try:
from local_settings import *
except:
pass
1 change: 1 addition & 0 deletions readthedocs/settings/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
}

IMPORT_EXTERNAL_DATA = False
DONT_HIT_DB = False

try:
from local_settings import *
Expand Down

0 comments on commit a1d0912

Please sign in to comment.