from django.conf.urls.defaults import patterns


urlpatterns = patterns('fragdenstaat_de.views',
    (r'^presse/(?P<slug>[-\w]+)/$', 'show_press', {}, 'fds-show_press'),
)

from django.conf.urls import patterns, url
from django.http import HttpResponseRedirect


urlpatterns = patterns('fragdenstaat_de.views',
    (r'^presse/(?P<slug>[-\w]+)/$', 'show_press', {}, 'fds-show_press'),
    url(r'^nordrhein-westfalen/', lambda request: HttpResponseRedirect('/nrw/'),
        name="jurisdiction-nrw-redirect")
)

Add custom NRW redirect url
Add custom NRW redirect url 
- from django.conf.urls.defaults import patterns
+ from django.conf.urls import patterns, url
+ from django.http import HttpResponseRedirect
  
  
  urlpatterns = patterns('fragdenstaat_de.views',
      (r'^presse/(?P<slug>[-\w]+)/$', 'show_press', {}, 'fds-show_press'),
+     url(r'^nordrhein-westfalen/', lambda request: HttpResponseRedirect('/nrw/'),
+         name="jurisdiction-nrw-redirect")
  )
  
Add custom NRW redirect url
## Code Before:
from django.conf.urls.defaults import patterns


urlpatterns = patterns('fragdenstaat_de.views',
    (r'^presse/(?P<slug>[-\w]+)/$', 'show_press', {}, 'fds-show_press'),
)

## Instruction:
Add custom NRW redirect url
## Code After:
from django.conf.urls import patterns, url
from django.http import HttpResponseRedirect


urlpatterns = patterns('fragdenstaat_de.views',
    (r'^presse/(?P<slug>[-\w]+)/$', 'show_press', {}, 'fds-show_press'),
    url(r'^nordrhein-westfalen/', lambda request: HttpResponseRedirect('/nrw/'),
        name="jurisdiction-nrw-redirect")
)
