Skip to main content

Wikibase backend for Django web framework

Project description

Yours settings.py sample:

DATABASES = {
    'default': {
        'ENGINE': 'wikibase',
        'BOT_USERNAME': getenv('BOT_USERNAME', 'SYSDBA'),    # Any user registerd as bot in mediawiki (with correct rights)
        'BOT_PASSWORD': getenv('BOT_PASSWORD', 'MasterKey'), # Bot password in mediawiki
        'URL': getenv('WIKIBASE_URL', 'http://localhost'),
        'OPTIONS': {
            'charset': 'utf-8',
            'instance_of_property_id': 1, # Change if instance of in local wikibase has another property identifier. For example: instance of has P2333 identity => 'instance_of_property_id': 2333
            'subclass_of_property_id': 2, # Change if instance of in local wikibase has another property identifier. For example: subclass of has P2777 identity => 'subclass_of_property_id': 2777
            'wdqs_sparql_endpoint': getenv('SPARQL_ENDPOINT', 'http://localhost/sparql'),
            'django_namespace': 'my-cool-application-namespace'
        }
    }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_wikibase-0.1.1a9-py2.py3-none-any.whl (165.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page