Favicon
This commit is contained in:
parent
9b214fb11d
commit
9c6ecc20a7
@ -17,6 +17,8 @@ from django.conf.urls import url
|
||||
from django.contrib import admin
|
||||
from django.conf import settings
|
||||
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
|
||||
|
||||
urlpatterns = [
|
||||
@ -28,6 +30,8 @@ urlpatterns = [
|
||||
url(r'^challenge/(?P<id>[0-9]+)', views.challenge),
|
||||
url(r'^challenges/', views.challenges),
|
||||
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.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
||||
|
BIN
static/favicon.ico
Normal file
BIN
static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Reference in New Issue
Block a user