Introduce a global config flag `DISABLED_COMMERCE` to toggle buy functionality availability. Raise specific `DisabledCommerceError` when buying is disabled, ensuring end-users are informed. Additionally, reformat code for readability and consistency, improving overall maintainability. |
||
|---|---|---|
| .. | ||
| settings | ||
| utils | ||
| __init__.py | ||
| api_urls.py | ||
| asgi.py | ||
| b2b_urls.py | ||
| celery.py | ||
| hosts.py | ||
| middleware.py | ||
| pagination.py | ||
| urls.py | ||
| wsgi.py | ||