Commit d8dce9ed authored by Nicolas G.'s avatar Nicolas G.

Ajout Robots.txt

parent d3342c6b
......@@ -27,6 +27,9 @@ from django.contrib.auth import views as auth_views
from django.contrib import admin
from django.contrib.gis import admin as geoadmin
# Pour le robots.txt
from django.http import HttpResponse
admin.autodiscover()
......@@ -66,6 +69,9 @@ urlpatterns = [
# Page d'index : la liste des villes
url(r'^$', liste_villes, name='index'),
# Robots.txt
url(r'^robots.txt', lambda x: HttpResponse("User-Agent: *\nDisallow:", content_type="text/plain"), name="robots_file"),
url('^r/', include('ponctu.urls')),
url('^lieu/', include('lieux.urls')),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment