Skip to main content

Sada

Sada is a Django package designed to handle SadaBiz payment links.

Installation

To install the package, you can use pip:

pip install sada

Usage

After installing the package, you need to add it to your Django project.

In your settings.py file, add sada to your INSTALLED_APPS:

INSTALLED_APPS = [
...
'sada',
...
]

Then, include the sada URLconf in your project urls.py:

from django.urls import include

urlpatterns = [
...
path('sada/', include('sada.urls')),
...
]

Now you can run Django's command to check for any database migrations:

python manage.py makemigrations
python manage.py migrate

Models

Sada provides two main models: Product and Price.

  • Product represents a product with fields like name, description, active, and metadata.
  • Price represents the pricing information related to a product.

Views

Sada provides several views for managing products and prices:

  • ProductListView: Displays a list of all products.

  • ProductDetailView: Displays detailed information about a specific product.

  • ProductCreateView: Allows you to create a new product.

  • ProductUpdateView: Allows you to update an existing product.

  • ProductDeleteView: Allows you to delete a product.

  • PriceListView: Displays a list of all prices.

  • PriceDetailView: Displays detailed information about a specific price.

  • PriceCreateView: Allows you to create a new price.

  • PriceUpdateView: Allows you to update an existing price.

  • PriceDeleteView: Allows you to delete a price.

These views are accessible via the URLs defined in sada/urls.py.

Templates

Sada provides several templates for displaying products and prices:

  • sada/product/product_list.html: Displays a list of all products.

  • sada/product/product_detail.html: Displays detailed information about a specific product.

  • sada/product/product_form.html: Displays a form for creating or updating a product.

  • sada/product/product_confirm_delete.html: Displays a confirmation prompt before deleting a product.

  • sada/price/price_list.html: Displays a list of all prices.

  • sada/price/price_detail.html: Displays detailed information about a specific price.

  • sada/price/price_form.html: Displays a form for creating or updating a price.

  • sada/price/price_confirm_delete.html: Displays a confirmation prompt before deleting a price.

You can customize these templates to suit your needs.

License

Sada is licensed under the MIT License. For more information, see the LICENSE file.

Release files for sada 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sada 0.4.0
File Size Uploaded
sada-0.4.0.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sada 0.4.0
File Interpreter ABI Platform
sada-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.3 kB

Release files / sada-0.4.0.tar.gz

Download URL sada-0.4.0.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c17ec1118286f6854d618c7d1e82561dcde71a6f9386d61d58292e695623163f
BLAKE2b-256 checksum
How to use checksums
6c951fc0a9e5a54f85f24dddf5d4424bfb77d6a979c1aeb9ab9b6c0a9b8a6d4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / sada-0.4.0-py3-none-any.whl

Download URL sada-0.4.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b25964d2c386da38a73f3501ce0bd089b35f51eafa4c5fccdfcad6301a8d305
BLAKE2b-256 checksum
How to use checksums
4372fc631105dcd47d7817a8a8b9d611bf015c614baad0dcb4dc8e700cf64459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page