File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Requests >= 2.20
1414## Install
1515
1616
17- ```
17+ ``` bash
1818pip install django-cryptapi
1919```
2020
2525
2626Add to INSTALLED_APPS:
2727
28- ```
28+ ``` python
2929INSTALLED_APPS = (
3030 ' cryptapi' ,
3131 ...
@@ -35,14 +35,14 @@ INSTALLED_APPS = (
3535
3636Run migrations:
3737
38- ```
38+ ``` bash
3939python3 manage.py migrate cryptapi
4040```
4141
4242
4343Add CryptAPI's URLs to your project's urls.py file:
4444
45- ```
45+ ``` python
4646urlpatterns = [
4747 path(' cryptapi/' , include(' cryptapi.urls' )),
4848 ...
@@ -61,7 +61,7 @@ You need to go into your Django Admin and create a new CryptAPI ``Provider`` for
6161
6262In your order creation view, assuming `` user_order `` is your order object:
6363
64- ```
64+ ``` python
6565from cryptapi import Invoice
6666...
6767def order_creation_view (request ):
9292
9393### Getting notified when the user pays
9494
95- ```
95+ ``` python
9696from django.dispatch import receiver
9797from cryptapi.signals import payment_complete
9898
You can’t perform that action at this time.
0 commit comments