stellar / django-polaris

An extendable Django app for building modular Stellar services
https://django-polaris.readthedocs.io
Apache License 2.0
94 stars 66 forks source link

Documentation Enable Hosted Deposits #649

Open ajuricabense opened 1 year ago

ajuricabense commented 1 year ago

This is an issue about documentation. Please let me know how to report issues specific to documentation, because I didn't find any option to perform.

In the section Enable Hosted Deposits & Withdraws/Processing Form Data it shows to implement the file:

from decimal import Decimal
from django import forms
from rest_framework.request import Request
from polaris.models import Transaction
from polaris.templates import Template
from polaris.integrations import (
    DepositIntegration,
    WithdrawIntegration,
    TransactionForm
)
from .users import user_for_account, create_user
....

However it does not specify the name and location suggested to implement in the user guide.

enable_host

JakeUrban commented 1 year ago

Hi @ajuricabense, I can update this, but it doesn't really matter where this file is in your project. You just need to be able to import it in your apps.py file so you can register the integration subclass.

ajuricabense commented 1 year ago

@JakeUrban your answer seems obvious but for me that I am a beginner and the ones that follow the user guide could be nice to have explicit explained the file.