def get_urls(): from django.conf.urls.defaults import patterns, url, include urlpatterns = patterns('', url(r'^support/$', site.with_perms(support)), url(r'^support/success/$', site.with_perms(support), {"form_status":True}), ) return urlpatterns
def get_urls(): from django.conf.urls.defaults import patterns, url, include urlpatterns = patterns('', url(r'^statistics/$', site.with_perms(statistics)), url(r'^statistics/ya_api/(week|month|year)/$', site.with_perms(ya_api)), ) return urlpatterns
def get_urls(): urlpatterns = patterns('', url(r'dynamic_pages/save/$', site.with_perms(save_page))); for page, urlname in settings.DYNAMIC_PAGES: urlpatterns += patterns('', url(r'^dynamic_pages/%s/$' % urlname, site.with_perms(view_page), {'page':page, 'urlname':urlname})) return urlpatterns
def get_urls(): from django.conf.urls.defaults import patterns, url, include urlpatterns = patterns('', url(r'^testmodule/$', site.with_perms(test)), ) return urlpatterns
def get_urls(): urlpatterns = patterns('', url(r'/([\w_]+)/page/(\d+)/$', site.with_perms(page))) urlpatterns += patterns('', url(r'/([\w_]+)/page/$', site.with_perms(page))) urlpatterns += patterns('', url(r'/([\w_]+)/pages/$', site.with_perms(pages))) urlpatterns += patterns('', url(r'/delete_page/(\d+)/$', site.with_perms(delete_page))) return urlpatterns
def get_urls(): urlpatterns = patterns('', url(r'^upload/image/$', site.with_perms(upload_img))); return urlpatterns