<s> from cms . utils . compat . dj import is_installed <EOL> from django . conf . urls import include , url <EOL> from cms . apphook_pool import apphook_pool <EOL> from cms . views import details <EOL> from django . conf import settings <EOL> if settings . APPEND_SLASH : <EOL> reg = url ( r'<STR_LIT>' , details , name = '<STR_LIT>' ) <EOL> else : <EOL> reg = url ( r'<STR_LIT>' , details , name = '<STR_LIT>' ) <EOL> urlpatterns = [ <EOL> url ( r'<STR_LIT>' , <EOL> include ( '<STR_LIT>' , namespace = "<STR_LIT>" , app_name = '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , <EOL> include ( '<STR_LIT>' , namespace = "<STR_LIT>" , app_name = '<STR_LIT>' ) ) , <EOL> url ( r'<STR_LIT>' , details , { '<STR_LIT>' : '<STR_LIT>' } , name = '<STR_LIT>' ) , <EOL> reg , <EOL> ] <EOL> if apphook_pool . get_apphooks ( ) : <EOL> """<STR_LIT>""" <EOL> from cms . appresolver import get_app_patterns <EOL> urlpatterns = get_app_patterns ( ) + urlpatterns <EOL> if settings . DEBUG and is_installed ( '<STR_LIT>' ) : <EOL> import debug_toolbar <EOL> urlpatterns += [ <EOL> url ( r'<STR_LIT>' , include ( debug_toolbar . urls ) ) , <EOL> ] </s>
