refactor: rename Wizamart to Orion across entire codebase
Replace all ~1,086 occurrences of Wizamart/wizamart/WIZAMART/WizaMart with Orion/orion/ORION across 184 files. This includes database identifiers, email addresses, domain references, R2 bucket names, DNS prefixes, encryption salt, Celery app name, config defaults, Docker configs, CI configs, documentation, seed data, and templates. Renames homepage-wizamart.html template to homepage-orion.html. Fixes duplicate file_pattern key in api.yaml architecture rule. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -233,12 +233,12 @@ class StoreContextManager:
|
||||
Extract store context from Referer header.
|
||||
|
||||
Used for storefront API requests where store context comes from the page
|
||||
that made the API call (e.g., JavaScript on /stores/wizamart/storefront/products
|
||||
that made the API call (e.g., JavaScript on /stores/orion/storefront/products
|
||||
calling /api/v1/storefront/products).
|
||||
|
||||
Extracts store from Referer URL patterns:
|
||||
- http://localhost:8000/stores/wizamart/storefront/... → wizamart
|
||||
- http://wizamart.platform.com/storefront/... → wizamart (subdomain) # noqa
|
||||
- http://localhost:8000/stores/orion/storefront/... → orion
|
||||
- http://orion.platform.com/storefront/... → orion (subdomain) # noqa
|
||||
- http://custom-domain.com/storefront/... → custom-domain.com # noqa
|
||||
|
||||
Returns store context dict or None if unable to extract.
|
||||
@@ -270,7 +270,7 @@ class StoreContextManager:
|
||||
)
|
||||
|
||||
# Method 1: Path-based detection from referer path
|
||||
# /stores/wizamart/storefront/products → wizamart
|
||||
# /stores/orion/storefront/products → orion
|
||||
if referer_path.startswith(("/stores/", "/store/")):
|
||||
prefix = (
|
||||
"/stores/" if referer_path.startswith("/stores/") else "/store/"
|
||||
@@ -297,7 +297,7 @@ class StoreContextManager:
|
||||
}
|
||||
|
||||
# Method 2: Subdomain detection from referer host
|
||||
# wizamart.platform.com → wizamart
|
||||
# orion.platform.com → orion
|
||||
platform_domain = getattr(settings, "platform_domain", "platform.com")
|
||||
if "." in referer_host:
|
||||
parts = referer_host.split(".")
|
||||
|
||||
Reference in New Issue
Block a user