DEBUG = True
TEMPLATE_DEBUG = DEBUG
-# A quick-n-dirty way to know if we're running unit tests
-import sys
TEST = False
-if len(sys.argv) >= 2:
- if os.path.basename(sys.argv[0]) == 'manage.py' and \
- (sys.argv[1] == 'test' or sys.argv[1] == 'hudson'):
- TEST = True
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
DATABASES = {
'default': {
- 'ENGINE': 'sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+ 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': PROJECT_PATH + 'pithos.db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
}
# The backend to use and its initilization options.
-if TEST:
- BACKEND = ('SimpleBackend', (os.path.join(PROJECT_PATH, 'data/test/'),))
-else:
- BACKEND = ('SimpleBackend', (os.path.join(PROJECT_PATH, 'data/pithos/'),))
+
+# Modular.
+backend_module = 'pithos.backends.lib.sqlite'
+backend_path = os.path.join(PROJECT_PATH, 'data/pithos/')
+backend_db = os.path.join(PROJECT_PATH, 'data/pithos/db')
+#backend_module = 'pithos.backends.lib.sqlalchemy'
+#backend_path = os.path.join(PROJECT_PATH, 'data/pithos/')
+#backend_db = 'postgresql://user:pass@host/db'
+BACKEND = ('ModularBackend', (backend_module, backend_path, backend_db))
+
+# Shibboleth-enabled path for authentication.
+LOGIN_URL = "/login"
+
+BYPASS_ADMIN_AUTH = False
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# 'django.contrib.admin',
# 'django.contrib.admindocs',
'pithos.aai',
+ 'pithos.admin',
'pithos.api',
'pithos.public'
)
# Default quota for new users.
DEFAULT_QUOTA = 10 * 1024 * 1024 * 1024
+# Show these many users per page in admin interface.
+ADMIN_PAGE_LIMIT = 100