This is a Django web application for managing accounts. It allows users to import accounts from a CSV file, list all accounts, view account information, and transfer funds between accounts. The project uses both Django templates and Django REST Framework (DRF) views, and the API is documented using Swagger.
- Import Accounts: Upload a CSV file to import accounts.
- List Accounts: View a list of all accounts.
- Account Information: View details of a specific account.
- Transfer Funds: Transfer funds between two accounts.
import_accounts.html
: Template for importing accounts.list_accounts.html
: Template for listing accounts.account_info.html
: Template for viewing account information.transfer_funds.html
: Template for transferring funds.views.py
: Contains both Django template views and DRF views.serializers.py
: Serializers for the DRF views.
ImportAccountsView
: Handles the import of accounts from a CSV file.ListAccountsView
: Displays a list of all accounts.AccountInfoView
: Displays information about a specific account.TransferFundsView
: Handles the transfer of funds between accounts.
ImportAccountsAPIView
: API endpoint to import accounts from a CSV file.ListAccountsAPIView
: API endpoint to list all accounts.AccountInfoAPIView
: API endpoint to get account information.TransferFundsAPIView
: API endpoint to transfer funds between accounts.
The API is documented using Swagger. You can access the Swagger UI at /swagger/
.
-
Docker
-
Docker Compose
-
pip install -r requirements.txt
-
cd app
-
python manage.py migrate
-
python manage.py runserver