redirect images
This commit is contained in:
parent
6b33e833a3
commit
df74c3a1f3
|
@ -23,6 +23,7 @@ urlpatterns = [
|
||||||
|
|
||||||
url(r'^.*index.php$', views.redirect_index, name='redirect_index'),
|
url(r'^.*index.php$', views.redirect_index, name='redirect_index'),
|
||||||
url(r'^.*event.php$', views.redirect_event, name='redirect_event'),
|
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'^projects/', views.projects, name='projects'),
|
||||||
url(r'^events/', views.events, name='events'),
|
url(r'^events/', views.events, name='events'),
|
||||||
|
|
|
@ -72,3 +72,7 @@ def redirect_event(request):
|
||||||
return redirect(reverse('content', kwargs={'shortname': content.shortname}))
|
return redirect(reverse('content', kwargs={'shortname': content.shortname}))
|
||||||
|
|
||||||
return redirect(reverse('events'))
|
return redirect(reverse('events'))
|
||||||
|
|
||||||
|
def redirect_images(request, image):
|
||||||
|
return redirect(image)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user