fichier statique
authorOlivier Larchevêque <olivier.larcheveque@auf.org>
Fri, 13 Sep 2013 18:55:55 +0000 (14:55 -0400)
committerOlivier Larchevêque <olivier.larcheveque@auf.org>
Fri, 13 Sep 2013 18:55:55 +0000 (14:55 -0400)
project_name/static/favicon.ico [new file with mode: 0644]
project_name/static/robots.txt [new file with mode: 0644]
project_name/urls.py

diff --git a/project_name/static/favicon.ico b/project_name/static/favicon.ico
new file mode 100644 (file)
index 0000000..e9dbdbf
Binary files /dev/null and b/project_name/static/favicon.ico differ
diff --git a/project_name/static/robots.txt b/project_name/static/robots.txt
new file mode 100644 (file)
index 0000000..e69de29
index dd649e1..afbaf3f 100644 (file)
@@ -14,6 +14,16 @@ handler500
 
 urlpatterns = patterns(
     '',
+
+    # fichiers statiques normalement servis par le frontal
+    url(r'^robots.txt/$',
+        'django.views.static.serve',
+        {'path': 'robots.txt', }),
+    url(r'^favicon.ico/$',
+        'django.views.static.serve',
+        {'path': 'favicon.ico', }),
+    # fin fichier statiques
+
     url(r'^api/pong/', include('auf.django.pong.urls')),
     (r'^admin/', include(admin.site.urls)),
 )