示例#1
0
    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
示例#2
0
    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
示例#3
0
    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
示例#4
0
 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
示例#5
0
 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