Refactored email sending to use a single HTML template with a base layout, removed plain text email templates, and updated all related backend logic. Introduced a new ContactMe model, serializer, Celery task, and API endpoints for handling contact form submissions, including email notifications. Renamed ShopConfiguration to SiteConfiguration throughout the backend for consistency. Updated frontend to remove unused components, add a new Services section, and adjust navigation and contact form integration.
16 lines
433 B
Python
16 lines
433 B
Python
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
|
|
from .views import ContactMePublicView, ContactMeAdminViewSet
|
|
|
|
router = DefaultRouter()
|
|
router.register(r"contact-messages", ContactMeAdminViewSet, basename="contactme")
|
|
|
|
urlpatterns = [
|
|
# Public endpoint
|
|
path("contact-me/", ContactMePublicView.as_view(), name="contact-me"),
|
|
|
|
# Admin endpoints
|
|
path("", include(router.urls)),
|
|
]
|