redirect images

This commit is contained in:
j 2017-12-08 22:22:01 +01:00
parent 6b33e833a3
commit df74c3a1f3
2 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,7 @@ urlpatterns = [
url(r'^.*index.php$', views.redirect_index, name='redirect_index'),
url(r'^.*event.php$', views.redirect_event, name='redirect_event'),
url(r'^.*(/images/.*)$', views.redirect_images, name='redirect_images'),
url(r'^projects/', views.projects, name='projects'),
url(r'^events/', views.events, name='events'),

View File

@ -72,3 +72,7 @@ def redirect_event(request):
return redirect(reverse('content', kwargs={'shortname': content.shortname}))
return redirect(reverse('events'))
def redirect_images(request, image):
return redirect(image)