Permalink
Browse files

Revert to using sandbox settings (but without debug toolbar)

This reverts ac7e8ee
  • Loading branch information...
1 parent 3f6a08d commit c87b4baddbffcf78f5b3d69c309a67753be44d03 @codeinthehole codeinthehole committed Jan 8, 2014
Showing with 13 additions and 2 deletions.
  1. +4 −2 docs/source/conf.py
  2. +9 −0 sites/sandbox/settings_sphinx.py
View
@@ -21,11 +21,13 @@
import os
oscar_folder = os.path.realpath(
os.path.join(os.path.dirname(__file__), '../..'))
+sandbox_folder = os.path.realpath(
+ os.path.join(os.path.dirname(__file__), '../../sites/sandbox'))
sys.path.append(oscar_folder)
+sys.path.append(sandbox_folder)
# Specify settings module (which will be picked up from the sandbox)
-from tests.config import configure
-configure()
+os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings_sphinx')
# -- General configuration -----------------------------------------------------
@@ -0,0 +1,9 @@
+from settings import *
+
+# Remove debug toolbar
+try:
+ idx = INSTALLED_APPS.index('debug_toolbar')
+except ValueError:
+ pass
+else:
+ del INSTALLED_APPS[idx]

0 comments on commit c87b4ba

Please sign in to comment.