Installation¶
Python package¶
pip install django-obm
Django¶
Add packages in INSTALLED_APPS
in your settings.py
.
INSTALLED_APPS = [
...
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django_obm',
]
If you need the REST API for django_obm
models, update your
urls.py
.
urlpatterns = [
...
url(r'^obm/', include('django_obm.urls')),
...
]
Post-Installation¶
Migrate database¶
In your Django root execute the command below to create your database tables:
python manage.py migrate
Install cryptocurrency nodes¶
django-obm
interact with blockchains through
cryptocurrency nodes. You should install them and allow RPC access.
Configuration example for each supported node is in
example project.
Now only following nodes are being supported by the framework:
Bitcoin: bitcoin-core