diff options
| author | Paul Oswald | 2012-02-14 11:19:40 +0900 |
|---|---|---|
| committer | Paul Oswald | 2012-02-14 11:25:59 +0900 |
| commit | 9c8ca51c78b96835d4f2aa09bdf38d5c9dc01102 (patch) | |
| tree | 0e6b92150d11e359bc01071a3db62926bb057b21 /djangorestframework/urls.py | |
| parent | ba1e3b46998254e12578d75428669751e105735b (diff) | |
| download | django-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.py | 10 |
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'), - ) |
