from django.views.generic import TemplateView
#再路由下面加
path("robots.txt",TemplateView.as_view(template_name='robots.txt', content_type='text/plain'))
]
01-20
from django.views.generic import TemplateView
#再路由下面加
path("robots.txt",TemplateView.as_view(template_name='robots.txt', content_type='text/plain'))
]