from django.conf.urls import patterns, url


def view():
    pass

urlpatterns = patterns(
    "",
    url("^$", view, name="index"),
    url("^(?P<url_title>[^/]+)/$", view, name="detail"),
)

from django.conf.urls import patterns, url


urlpatterns = patterns(
    "",
    url("^$", lambda: None, name="index"),
    url("^(?P<url_title>[^/]+)/$", lambda: None, name="detail"),
)

Replace page test url views with lambdas.
Replace page test url views with lambdas.

  from django.conf.urls import patterns, url
  
  
- def view():
-     pass
- 
  urlpatterns = patterns(
      "",
-     url("^$", view, name="index"),
+     url("^$", lambda: None, name="index"),
-     url("^(?P<url_title>[^/]+)/$", view, name="detail"),
+     url("^(?P<url_title>[^/]+)/$", lambda: None, name="detail"),
  )
  
Replace page test url views with lambdas.
## Code Before:
from django.conf.urls import patterns, url


def view():
    pass

urlpatterns = patterns(
    "",
    url("^$", view, name="index"),
    url("^(?P<url_title>[^/]+)/$", view, name="detail"),
)

## Instruction:
Replace page test url views with lambdas.
## Code After:
from django.conf.urls import patterns, url


urlpatterns = patterns(
    "",
    url("^$", lambda: None, name="index"),
    url("^(?P<url_title>[^/]+)/$", lambda: None, name="detail"),
)
