To define the robots.txt file in Django 2.0, you can add the following code to the urls.py file.
path('robots.txt', lambda x: HttpResponse("User-Agent: *\nDisallow:", content_type="text/plain")),
You have examined the knowledge base in detail, but if you cannot find the information you need,
Create a Support Ticket