This commit is contained in:
teras
2017-10-08 10:44:04 +03:00
parent 9b214fb11d
commit 9c6ecc20a7
2 changed files with 5 additions and 1 deletions

View File

@@ -17,6 +17,8 @@ from django.conf.urls import url
from django.contrib import admin from django.contrib import admin
from django.conf import settings from django.conf import settings
from django.conf.urls.static import static from django.conf.urls.static import static
from django.contrib.staticfiles.storage import staticfiles_storage
from django.views.generic.base import RedirectView
from challenges import views from challenges import views
urlpatterns = [ urlpatterns = [
@@ -28,6 +30,8 @@ urlpatterns = [
url(r'^challenge/(?P<id>[0-9]+)', views.challenge), url(r'^challenge/(?P<id>[0-9]+)', views.challenge),
url(r'^challenges/', views.challenges), url(r'^challenges/', views.challenges),
url(r'^halloffame/', views.hall_of_fame), url(r'^halloffame/', views.hall_of_fame),
url(r'^profile/(?P<username>[\w.-]+)', views.profile) url(r'^profile/(?P<username>[\w.-]+)', views.profile),
url(r'^favicon.ico$', RedirectView.as_view(url=staticfiles_storage.url('favicon.ico'), permanent=False), name='favicon')
] + static(settings.STATIC_URL, document_root=settings.STATICFILES_DIRS) + \ ] + static(settings.STATIC_URL, document_root=settings.STATICFILES_DIRS) + \
static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB