<filename>magpie/magpie/settings/base.py<gh_stars>1-10
"""
Magpie settings

First set an environment variable like:
    MAGPIE_SETTINGS_MODULE=magpie.settings.local
Then you can import settings in any module, like:
    $ from magpie.settings import settings
"""

from os.path import join, normpath, dirname


BASE_DIR = normpath(dirname(dirname(dirname(__file__))))

DATABASE = {
    'ENGINE': 'sqlite:///',
    'NAME': normpath(join(BASE_DIR, 'magpie.db')),
}

# Test bearertoken_ids
TEST_BEARERTOKEN_IDS = range(0, 51)  # From 0 to 50 included.

# Dropbox settings.
DROPBOX_MAX_FILE_SIZE = 10*1024*1024  # 10 MB in bytes
DROPBOX_TEMP_STORAGE_PATH = normpath(join(BASE_DIR, '_tmp', 'dropbox'))
DROPBOX_FILE_EXT_FILTER = ['txt', 'doc', 'docx', 'pdf']  # lowercase!

# Redis connection.
REDIS = {
    'UNIX_SOCKET': {
        'PATH': '/tmp/redis.sock',
    }
}

# Solr connection.
SOLR_URL = 'http://127.0.0.1:8983/solr'
<filename>magpie/magpie/settings/base.py<gh_stars>1-10
"""
Magpie settings

First set an environment variable like:
    MAGPIE_SETTINGS_MODULE=magpie.settings.local
Then you can import settings in any module, like:
    $ from magpie.settings import settings
"""

from os.path import join, normpath, dirname


BASE_DIR = normpath(dirname(dirname(dirname(__file__))))

DATABASE = {
    'ENGINE': 'sqlite:///',
    'NAME': normpath(join(BASE_DIR, 'magpie.db')),
}

# Test bearertoken_ids
TEST_BEARERTOKEN_IDS = range(0, 51)  # From 0 to 50 included.

# Dropbox settings.
DROPBOX_MAX_FILE_SIZE = 10*1024*1024  # 10 MB in bytes
DROPBOX_TEMP_STORAGE_PATH = normpath(join(BASE_DIR, '_tmp', 'dropbox'))
DROPBOX_FILE_EXT_FILTER = ['txt', 'doc', 'docx', 'pdf']  # lowercase!

# Redis connection.
REDIS = {
    'UNIX_SOCKET': {
        'PATH': '/tmp/redis.sock',
    }
}

# Solr connection.
SOLR_URL = 'http://127.0.0.1:8983/solr'
Magpie settings  First set an environment variable like:     MAGPIE_SETTINGS_MODULE=magpie.settings.local Then you can import settings in any module, like:     $ from magpie.settings import settings # Test bearertoken_ids # From 0 to 50 included. # Dropbox settings. # 10 MB in bytes # lowercase! # Redis connection. # Solr connection.