참조 : https://docs.djangoproject.com/en/5.1/ref/class-based-views/base/#redirectview
sample
from django.urls import path
from post.views import PostDetailTV
from django.views.generic.base import RedirectView
from django.conf import settings
app_name = "post"
urlpatterns = [
path("" , RedirectView.as_view(url=f"/{app_name}/0/{settings.DEFAULT_MAX_SEC}/"), name="view01"),
#path("" , RedirectView.as_view(pattern_name='post:view03'), name="view02"),
path("<int:viewMode>/<int:itvlSec>/" , PostDetailTV.as_view(), name="view03"),
]