def _get_urls(self): urlpatterns = _patterns() for controller_name, controller_class in self.controllers.items(): urlpatterns += _patterns(url(r'^%(controller)s/' % {'controller': controller_name}, include(get_controller_urlconf(controller_class, site=self)))) return urlpatterns
def _get_urls(self): from django.conf.urls import patterns, include urlpatterns = patterns('') for controller_name, controller_class in self.controllers.items(): urlpatterns += patterns('', (r'^%(controller)s/' % { 'controller': controller_name }, include(get_controller_urlconf(controller_class, site=self)))) return urlpatterns
def _get_urls(self): from django.conf.urls import patterns, url, include urlpatterns = patterns("") for controller_name, controller_class in self.controllers.items(): urlpatterns += patterns( "", ( r"^%(controller)s/" % {"controller": controller_name}, include(get_controller_urlconf(controller_class, site=self)), ), ) return urlpatterns
def _get_urls(self): urlpatterns = _patterns() for controller_name, controller_class in self.controllers.items(): urlpatterns += _patterns(url(r'^%(controller)s/' % {'controller':controller_name}, include(get_controller_urlconf(controller_class, site=self)))) return urlpatterns
def _get_urls(self): from django.conf.urls import patterns, include urlpatterns = patterns('') for controller_name, controller_class in self.controllers.items(): urlpatterns += patterns('', (r'^%(controller)s/' % {'controller':controller_name}, include(get_controller_urlconf(controller_class, site=self)))) return urlpatterns