add robots.txt

This commit is contained in:
2026-01-14 12:40:49 +01:00
parent 1874518ea2
commit 9e5582a577
2 changed files with 6 additions and 0 deletions

View File

@@ -20,12 +20,14 @@ from django.conf import settings
from django.conf.urls.static import static
from django.views.generic import RedirectView
from django.http import JsonResponse
from . import views
def healthcheck(request):
return JsonResponse({'status': True})
urlpatterns = [
path('', RedirectView.as_view(url='admin/login/', permanent=False), name='/'),
path('admin/', admin.site.urls),
path('robots.txt', views.robots_txt),
path('accounts/', admin.site.urls),
path('collabs/', include('collabs.urls')),
path('vehicules/', include('vehicles.urls')),

4
Reskreen/views.py Normal file
View File

@@ -0,0 +1,4 @@
from django.http import HttpResponse
def robots_txt(request):
return HttpResponse("User-agent: *\nDisallow: /\n", content_type="text/plain")