Files
company_site/company_site/public/urls.py
T
westfarn 05aa0b96b1
Unit Tests / test (push) Successful in 12s
Remove file hosting service page and references (#25)
## Summary
- Closes #21
- Remove retired file hosting marketing page, nav/home cards, SEO/sitemap entries, and unused images
- Permanently redirect `/file_hosting` → home so inbound links and search results do not 404

## Test plan
- [x] `python manage.py test public` passes
- [ ] Visit `/file_hosting` → 301 to home
- [ ] Confirm Services nav has no Hosting entry
- [ ] Confirm home page has no File Hosting card
- [ ] Confirm `sitemap.xml` / page metadata omit file hostingReviewed-on: #25
2026-07-31 11:40:54 -07:00

37 lines
1.6 KiB
Python
Executable File

from django.urls import path
from django.views.generic import RedirectView
from . import seo, views
urlpatterns = [
path("robots.txt", seo.robots_txt, name="robots_txt"),
path("sitemap.xml", seo.sitemap_xml, name="sitemap_xml"),
path("llms.txt", seo.llms_txt, name="llms_txt"),
path("", views.index, name="public_index"),
path("chat", views.chat, name="chat"),
path("ai_education", views.ai_education, name="ai_education"),
path("computer", views.computers, name="computers"),
path("web_design", views.web_design, name="web_design"),
path("ai_sensor", views.ai_sensor, name="ai_sensor"),
# Permanent redirect: product retired; keep URL for inbound links/search results.
path(
"file_hosting",
RedirectView.as_view(pattern_name="public_index", permanent=True),
),
path("bot_creation", views.bot, name="bot"),
path("forward-deployed-ai", views.forward_deployed, name="forward_deployed"),
path("ml_model", views.ml_model, name="ml_model"),
path("contact", views.contact, name="contact"),
path("terms", views.terms_of_service, name="terms_of_service"),
path("utm", views.utm_dashboard, name="utm_dashboard"),
path("leads", views.leads_list, name="leads_list"),
path("leads/<int:pk>/", views.lead_detail, name="lead_detail"),
path(
"leads/<int:pk>/toggle-contacted/",
views.lead_toggle_contacted,
name="lead_toggle_contacted",
),
path("change_password", views.change_password, name="change_password"),
path("preview_email/<int:pk>/", views.preview_email, name="preview_email")
]