Fixed urlpatterns assignment so turning debug off does not break it.