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:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Demo Database Seeder for Wizamart Platform
|
||||
Demo Database Seeder for Orion Platform
|
||||
|
||||
Creates DEMO/TEST data for development and testing:
|
||||
- Demo stores with realistic data
|
||||
@@ -144,12 +144,12 @@ DEMO_COMPANIES = [
|
||||
DEMO_STORES = [
|
||||
{
|
||||
"merchant_index": 0, # WizaCorp
|
||||
"store_code": "WIZAMART",
|
||||
"name": "WizaMart",
|
||||
"subdomain": "wizamart",
|
||||
"store_code": "ORION",
|
||||
"name": "Orion",
|
||||
"subdomain": "orion",
|
||||
"description": "Premium electronics and gadgets marketplace",
|
||||
"theme_preset": "modern",
|
||||
"custom_domain": "wizamart.shop",
|
||||
"custom_domain": "orion.shop",
|
||||
},
|
||||
{
|
||||
"merchant_index": 0, # WizaCorp
|
||||
@@ -216,7 +216,7 @@ DEMO_TEAM_MEMBERS = [
|
||||
"password": "password123",
|
||||
"first_name": "Alice",
|
||||
"last_name": "Manager",
|
||||
"store_codes": ["WIZAMART", "WIZAGADGETS"], # manages two stores
|
||||
"store_codes": ["ORION", "WIZAGADGETS"], # manages two stores
|
||||
"user_type": "member",
|
||||
},
|
||||
{
|
||||
@@ -287,20 +287,20 @@ THEME_PRESETS = {
|
||||
# Store content page overrides (demonstrates CMS store override feature)
|
||||
# Each store can override platform default pages with custom content
|
||||
STORE_CONTENT_PAGES = {
|
||||
"WIZAMART": [
|
||||
"ORION": [
|
||||
{
|
||||
"slug": "about",
|
||||
"title": "About WizaMart",
|
||||
"title": "About Orion",
|
||||
"content": """
|
||||
<div class="prose-content">
|
||||
<h2>Welcome to WizaMart</h2>
|
||||
<h2>Welcome to Orion</h2>
|
||||
<p>Your premier destination for cutting-edge electronics and innovative gadgets.</p>
|
||||
|
||||
<h3>Our Story</h3>
|
||||
<p>Founded by tech enthusiasts, WizaMart has been bringing the latest technology to customers since 2020.
|
||||
<p>Founded by tech enthusiasts, Orion has been bringing the latest technology to customers since 2020.
|
||||
We carefully curate our selection to ensure you get only the best products at competitive prices.</p>
|
||||
|
||||
<h3>Why Choose WizaMart?</h3>
|
||||
<h3>Why Choose Orion?</h3>
|
||||
<ul>
|
||||
<li><strong>Expert Selection:</strong> Our team tests and reviews every product</li>
|
||||
<li><strong>Best Prices:</strong> We negotiate directly with manufacturers</li>
|
||||
@@ -312,20 +312,20 @@ STORE_CONTENT_PAGES = {
|
||||
<p>123 Tech Street, Luxembourg City<br>Open Monday-Saturday, 9am-7pm</p>
|
||||
</div>
|
||||
""",
|
||||
"meta_description": "WizaMart - Your trusted source for premium electronics and gadgets in Luxembourg",
|
||||
"meta_description": "Orion - Your trusted source for premium electronics and gadgets in Luxembourg",
|
||||
"show_in_header": True,
|
||||
"show_in_footer": True,
|
||||
},
|
||||
{
|
||||
"slug": "contact",
|
||||
"title": "Contact WizaMart",
|
||||
"title": "Contact Orion",
|
||||
"content": """
|
||||
<div class="prose-content">
|
||||
<h2>Get in Touch with WizaMart</h2>
|
||||
<h2>Get in Touch with Orion</h2>
|
||||
|
||||
<h3>Customer Support</h3>
|
||||
<ul>
|
||||
<li><strong>Email:</strong> support@wizamart.shop</li>
|
||||
<li><strong>Email:</strong> support@orion.lu</li>
|
||||
<li><strong>Phone:</strong> +352 123 456 789</li>
|
||||
<li><strong>WhatsApp:</strong> +352 123 456 789</li>
|
||||
<li><strong>Hours:</strong> Monday-Friday, 9am-6pm CET</li>
|
||||
@@ -334,7 +334,7 @@ STORE_CONTENT_PAGES = {
|
||||
<h3>Technical Support</h3>
|
||||
<p>Need help with your gadgets? Our tech experts are here to help!</p>
|
||||
<ul>
|
||||
<li><strong>Email:</strong> tech@wizamart.shop</li>
|
||||
<li><strong>Email:</strong> tech@orion.lu</li>
|
||||
<li><strong>Live Chat:</strong> Available on our website</li>
|
||||
</ul>
|
||||
|
||||
@@ -342,7 +342,7 @@ STORE_CONTENT_PAGES = {
|
||||
<p>123 Tech Street<br>Luxembourg City, L-1234<br>Luxembourg</p>
|
||||
</div>
|
||||
""",
|
||||
"meta_description": "Contact WizaMart customer support for electronics and gadget inquiries",
|
||||
"meta_description": "Contact Orion customer support for electronics and gadget inquiries",
|
||||
"show_in_header": True,
|
||||
"show_in_footer": True,
|
||||
},
|
||||
@@ -922,7 +922,7 @@ def create_demo_products(db: Session, store: Store, count: int) -> list[Product]
|
||||
availability="in stock",
|
||||
condition="new",
|
||||
google_product_category="Electronics > Computers > Laptops",
|
||||
marketplace="Wizamart",
|
||||
marketplace="Orion",
|
||||
store_name=store.name,
|
||||
currency="EUR",
|
||||
created_at=datetime.now(UTC),
|
||||
@@ -1205,7 +1205,7 @@ def print_summary(db: Session):
|
||||
print(" All customers:")
|
||||
print(" Email: customer1@{subdomain}.example.com")
|
||||
print(" Password: customer123")
|
||||
print(" (Replace {subdomain} with store subdomain, e.g., wizamart)")
|
||||
print(" (Replace {subdomain} with store subdomain, e.g., orion)")
|
||||
print()
|
||||
|
||||
print("\n🏪 Shop Access (Development):")
|
||||
@@ -1223,9 +1223,9 @@ def print_summary(db: Session):
|
||||
print("\n🚀 NEXT STEPS:")
|
||||
print(" 1. Start development: make dev")
|
||||
print(" 2. Login as store:")
|
||||
print(" • Path-based: http://localhost:8000/store/WIZAMART/login")
|
||||
print(" • Subdomain: http://wizamart.localhost:8000/store/login")
|
||||
print(" 3. Visit store shop: http://localhost:8000/stores/WIZAMART/shop/")
|
||||
print(" • Path-based: http://localhost:8000/store/ORION/login")
|
||||
print(" • Subdomain: http://orion.localhost:8000/store/login")
|
||||
print(" 3. Visit store shop: http://localhost:8000/stores/ORION/shop/")
|
||||
print(" 4. Admin panel: http://localhost:8000/admin/login")
|
||||
print(f" Username: {settings.admin_username}")
|
||||
print(f" Password: {settings.admin_password}")
|
||||
|
||||
Reference in New Issue
Block a user