Skip to main content

A Django app to organize accepting bitcoin, litecoin, novacoin and other cryptocoins.

Project description

Django-cryptocoin is a Django app to organize accepting bitcoin, litecoin, novacoin and other cryptocoins.

Quick Start

  1. Install using pip:

    pip install django-cryptocoin

  2. Add to INSTALLED_APPS in your settings.py:

    ‘django-cryptocoin’,

  3. Run python manage.py migrate

Example

https://github.com/quantum13/django-crypto-paid-chat

Options

CRYPTO_COINS

Dict with supported crypto currencies. Default:

{
    'btc': 'Bitcoin',
    'ltc': 'Litecoin',
    'nvc': 'Novacoin',
}

CONNECTION_STRING

Connection strings for JSON-RPC commands to coin clients. Default:

{
    'btc': 'your_bitcoin_addr_to_send_btc',
    'ltc': 'your_litecoin_addr_to_send_ltc',
    'nvc': 'your_novacoin_addr_to_send_nvc',
}

CONFIRMATIONS

Network confirmations count for each crypto currency. Default:

{
    'btc': 1,
    'ltc': 1,
    'nvc': 1,
}

PROCESS_TEMPLATE

Template for process view. You can use own site template for this page. For example if you have base template base.html with block content you can create process.html in your template folder and paste this code:

{% extends 'base.html' %}
{% load crispy_forms_tags %}

{% block content %}
    {% include 'django_cryptocoin/process.html' %}
{% endblock %}

INVOICE_TIME

How many seconds app will wait for payment. If you set big value, exchange rate to USD can change significantly. Default 900 seconds/

GENERATED_ADDRESSES_ACCOUNT

Account for generated addresses in your wallet. Default django_cryptocoin.

CURRENCY_PAIRS

Currency pairs for which will retrieved exchange rates from btc-e.com. To retrieve this rates run command python manage.py get_exchange_rates. Than you can get this rates with function ExchangeRate.get_exchange_rate(from_currency, to_currency). Default:

['btc_usd', 'btc_rur', 'btc_eur', 'ltc_usd', 'ltc_rur', 'nvc_usd']

Project details


Download files

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

Source Distribution

django-cryptocoin-0.1.zip (13.8 kB view details)

Uploaded Source

File details

Details for the file django-cryptocoin-0.1.zip.

File metadata

  • Download URL: django-cryptocoin-0.1.zip
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-cryptocoin-0.1.zip
Algorithm Hash digest
SHA256 d5ed7b77caafa426926c4b50456c210f90537babd243c348074e3675c14dfd2c
MD5 cdaa703cfe0e61f6ca186606a0800444
BLAKE2b-256 701bc5523fb2cc8d85ff3e8143bb08b477b67c313978acf91dd045500115868d

See more details on using hashes here.

Supported by

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