Revision 17bebf7e astakos/im/settings.py
b/astakos/im/settings.py | ||
---|---|---|
8 | 8 |
# to be this many hours after their creation time. |
9 | 9 |
AUTH_TOKEN_DURATION = getattr(settings, 'ASTAKOS_AUTH_TOKEN_DURATION', 30 * 24) |
10 | 10 |
|
11 |
# Bypass authentication for user administration. |
|
12 |
BYPASS_ADMIN_AUTH = getattr(settings, 'ASTAKOS_BYPASS_ADMIN_AUTH', False) |
|
13 |
|
|
14 |
# Show these many users per page in admin interface. |
|
15 |
ADMIN_PAGE_LIMIT = getattr(settings, 'ASTAKOS_ADMIN_PAGE_LIMIT', 100) |
|
16 |
|
|
17 | 11 |
# Authenticate via Twitter. |
18 | 12 |
TWITTER_KEY = getattr(settings, 'ASTAKOS_TWITTER_KEY', '') |
19 | 13 |
TWITTER_SECRET = getattr(settings, 'ASTAKOS_TWITTER_SECRET', '') |
... | ... | |
55 | 49 |
|
56 | 50 |
# Set service name |
57 | 51 |
SITENAME = getattr(settings, 'ASTAKOS_SITENAME', 'Pithos+') |
58 |
|
|
59 |
# SQLAlchemy (choose SQLite/MySQL/PostgreSQL). |
|
60 |
BACKEND_DB_MODULE = getattr(settings, 'PITHOS_BACKEND_DB_MODULE', 'pithos.backends.lib.sqlalchemy') |
|
61 |
BACKEND_DB_CONNECTION = getattr(settings, 'PITHOS_BACKEND_DB_CONNECTION', 'sqlite:///' + join(PROJECT_PATH, 'backend.db')) |
|
62 |
|
|
63 |
# Block storage. |
|
64 |
BACKEND_BLOCK_MODULE = getattr(settings, 'PITHOS_BACKEND_BLOCK_MODULE', 'pithos.backends.lib.hashfiler') |
|
65 |
BACKEND_BLOCK_PATH = getattr(settings, 'PITHOS_BACKEND_BLOCK_PATH', join(PROJECT_PATH, 'data/')) |
|
66 |
|
|
67 |
# Default setting for new accounts. |
|
68 |
BACKEND_QUOTA = getattr(settings, 'PITHOS_BACKEND_QUOTA', 50 * 1024 * 1024 * 1024) |
|
69 |
BACKEND_VERSIONING = getattr(settings, 'PITHOS_BACKEND_VERSIONING', 'auto') |
Also available in: Unified diff