Skip to content

Commit

Permalink
Pridaný redirect na favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
mireq committed Feb 26, 2017
1 parent fb53ca6 commit fe8b803
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.contenttypes import views as contenttype_views
from django.contrib.staticfiles.storage import staticfiles_storage
from django.utils.translation import ugettext_lazy as _
from django.views.generic import RedirectView

from search.views import SearchView

Expand Down Expand Up @@ -34,6 +36,7 @@
url(r'^api/editor/', include('rich_editor.urls', namespace='rich_editor')),
url(r'^hijack/', include('hijack.urls')),
url(r'^django-email-log/', include('django_email_log.urls')),
url(r'^favicon.ico$', RedirectView.as_view(url=staticfiles_storage.url('favicon.ico'), permanent=True)),
)

if settings.DEBUG:
Expand Down

0 comments on commit fe8b803

Please sign in to comment.