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
Release history Release notifications | RSS feed
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
File details
Details for the file django_wikibase-0.1.1a9-py2.py3-none-any.whl
.
File metadata
- Download URL: django_wikibase-0.1.1a9-py2.py3-none-any.whl
- Upload date:
- Size: 165.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.18.4 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd9dc8bbc683fc41a310c5db5d0b8722f5f7c5f4d112923470e6708fb96ab5fa |
|
MD5 | 70bddf01ceed17fd0fdfe8b1d601741b |
|
BLAKE2b-256 | 348ab4cd2c721bd253431c4907f1730ad3db89f52ddacf4d09c2827724d09baa |