aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/urls.py
diff options
context:
space:
mode:
authorPaul Oswald2012-02-14 11:19:40 +0900
committerPaul Oswald2012-02-14 11:25:59 +0900
commit9c8ca51c78b96835d4f2aa09bdf38d5c9dc01102 (patch)
tree0e6b92150d11e359bc01071a3db62926bb057b21 /djangorestframework/urls.py
parentba1e3b46998254e12578d75428669751e105735b (diff)
downloaddjango-rest-framework-9c8ca51c78b96835d4f2aa09bdf38d5c9dc01102.tar.bz2
Delete robots.txt, favicon.ico views; Move style to a new static namespace
Diffstat (limited to 'djangorestframework/urls.py')
-rw-r--r--djangorestframework/urls.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/djangorestframework/urls.py b/djangorestframework/urls.py
index 827aac9c..5c797bcd 100644
--- a/djangorestframework/urls.py
+++ b/djangorestframework/urls.py
@@ -1,16 +1,6 @@
from django.conf.urls.defaults import patterns
-from django.conf import settings
urlpatterns = patterns('djangorestframework.utils.staticviews',
- (r'robots.txt', 'deny_robots'),
(r'^accounts/login/$', 'api_login'),
(r'^accounts/logout/$', 'api_logout'),
)
-
-# Only serve favicon in production because otherwise chrome users will pretty much
-# permanantly have the django-rest-framework favicon whenever they navigate to
-# 127.0.0.1:8000 or whatever, which gets annoying
-if not settings.DEBUG:
- urlpatterns += patterns('djangorestframework.utils.staticviews',
- (r'favicon.ico', 'favicon'),
- )