コード例 #1
0
 url(r'^apache_license_basic/$',
     TemplateView.as_view(template_name='apache_license.html'),
     name='apache_license_basic'),
 url(r'^apache_license/$', apache_license, name='apache_license'),
 url(r'^bsd_license_basic/$',
     TemplateView.as_view(template_name='bsd_license.html'),
     name='bsd_license_basic'),
 url(r'^bsd_license/$', bsd_license, name='bsd_license'),
 url(r'^exchange/cda_basic/$',
     TemplateView.as_view(template_name='cda.html'),
     name='cda_basic'),
 url(r'^exchange/cda/$', cda, name='cda'),
 url(r'^sms_in/$', sms_in, name='sms_in'),
 url(r'^wisepill/', include('custom.apps.wisepill.urls')),
 url(r'^pro_bono/$',
     ProBonoStaticView.as_view(),
     name=ProBonoStaticView.urlname),
 url(r'^ping/$', ping, name='ping'),
 url(
     r'^robots.txt$',
     TemplateView.as_view(template_name='robots.txt',
                          content_type='text/plain')),
 url(r'^software-plans/$',
     RedirectView.as_view(url=PRICING_LINK, permanent=True),
     name='go_to_pricing'),
 url(
     r'^unsubscribe_report/(?P<scheduled_report_id>[\w-]+)/'
     r'(?P<user_email>[\w.%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4})/(?P<scheduled_report_secret>[\w-]+)/',
     ReportNotificationUnsubscribeView.as_view(),
     name=ReportNotificationUnsubscribeView.urlname),
 url(r'^phone/list_apps', list_apps, name="list_accessible_apps")
コード例 #2
0
ファイル: urls.py プロジェクト: bazuzi/commcare-hq
    (r'^404/$', TemplateView.as_view(template_name='404.html')),
    (r'^403/$', TemplateView.as_view(template_name='403.html')),
    url(r'^eula_basic/$', TemplateView.as_view(template_name='eula.html'), name='eula_basic'),
    url(r'^eula/$', 'corehq.apps.hqwebapp.views.eula', name='eula'),
    url(r'^apache_license_basic/$', TemplateView.as_view(template_name='apache_license.html'), name='apache_license_basic'),
    url(r'^apache_license/$', 'corehq.apps.hqwebapp.views.apache_license', name='apache_license'),
    url(r'^bsd_license_basic/$', TemplateView.as_view(template_name='bsd_license.html'), name='bsd_license_basic'),
    url(r'^bsd_license/$', 'corehq.apps.hqwebapp.views.bsd_license', name='bsd_license'),
    url(r'^product_agreement/$', 'corehq.apps.hqwebapp.views.product_agreement', name='product_agreement'),
    url(r'^exchange/cda_basic/$', TemplateView.as_view(template_name='cda.html'), name='cda_basic'),
    url(r'^exchange/cda/$', 'corehq.apps.hqwebapp.views.cda', name='cda'),
    url(r'^sms_in/$', 'corehq.apps.sms.views.sms_in', name='sms_in'),
    url(r'^unsubscribe/(?P<user_id>[\w-]+)/',
        'corehq.apps.hqwebapp.views.unsubscribe', name='unsubscribe'),
    (r'^wisepill/', include('custom.apps.wisepill.urls')),
    url(r'^pro_bono/$', ProBonoStaticView.as_view(),
        name=ProBonoStaticView.urlname),
    url(r'^loadtest/', include('corehq.apps.loadtestendpoints.urls')),
    url(r'^robots.txt$', TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
    url(r'^software-plans/$', RedirectView.as_view(url=PRICING_LINK), name='go_to_pricing'),
) + patterns('', *LOCAL_APP_URLS)

if settings.ENABLE_PRELOGIN_SITE:
    urlpatterns += patterns('', *PRELOGIN_APP_URLS)

#django-staticfiles static/ url mapper
if settings.DEBUG:
    urlpatterns += patterns('',
        url(r'^mocha/', include('corehq.apps.mocha.urls')),
    )
    urlpatterns += patterns('django.contrib.staticfiles.views',
コード例 #3
0
ファイル: urls.py プロジェクト: pawelreise/commcare-hq
    (r"^sqlextract/", include("ctable_view.urls")),
    (r"^500/$", TemplateView.as_view(template_name="500.html")),
    (r"^404/$", TemplateView.as_view(template_name="404.html")),
    url(r"^eula_basic/$", TemplateView.as_view(template_name="eula.html"), name="eula_basic"),
    url(r"^eula/$", "corehq.apps.hqwebapp.views.eula", name="eula"),
    url(
        r"^apache_license_basic/$",
        TemplateView.as_view(template_name="apache_license.html"),
        name="apache_license_basic",
    ),
    url(r"^apache_license/$", "corehq.apps.hqwebapp.views.apache_license", name="apache_license"),
    url(r"^bsd_license_basic/$", TemplateView.as_view(template_name="bsd_license.html"), name="bsd_license_basic"),
    url(r"^bsd_license/$", "corehq.apps.hqwebapp.views.bsd_license", name="bsd_license"),
    url(r"^product_agreement/$", "corehq.apps.hqwebapp.views.product_agreement", name="product_agreement"),
    url(r"^exchange/cda_basic/$", TemplateView.as_view(template_name="cda.html"), name="cda_basic"),
    url(r"^exchange/cda/$", "corehq.apps.hqwebapp.views.cda", name="cda"),
    url(r"^sms_in/$", "corehq.apps.sms.views.sms_in", name="sms_in"),
    url(r"^unsubscribe/(?P<user_id>[\w-]+)/", "corehq.apps.hqwebapp.views.unsubscribe", name="unsubscribe"),
    (r"^wisepill/", include("custom.apps.wisepill.urls")),
    url(r"^pro_bono/$", ProBonoStaticView.as_view(), name=ProBonoStaticView.urlname),
    url(r"^loadtest/", include("corehq.apps.loadtestendpoints.urls")),
) + patterns("", *LOCAL_APP_URLS)

# django rosetta support if configured
if "rosetta" in settings.INSTALLED_APPS:
    urlpatterns += patterns("", url(r"^rosetta/", include("rosetta.urls")))

# django-staticfiles static/ url mapper
if settings.DEBUG:
    urlpatterns += patterns("django.contrib.staticfiles.views", url(r"^static/(?P<path>.*)$", "serve"))
コード例 #4
0
ファイル: urls.py プロジェクト: amonkeykong81/commcare-hq
    (r'^500/$', TemplateView.as_view(template_name='500.html')),
    (r'^404/$', TemplateView.as_view(template_name='404.html')),
    url(r'^eula_basic/$', TemplateView.as_view(template_name='eula.html'), name='eula_basic'),
    url(r'^eula/$', 'corehq.apps.hqwebapp.views.eula', name='eula'),
    url(r'^apache_license_basic/$', TemplateView.as_view(template_name='apache_license.html'), name='apache_license_basic'),
    url(r'^apache_license/$', 'corehq.apps.hqwebapp.views.apache_license', name='apache_license'),
    url(r'^bsd_license_basic/$', TemplateView.as_view(template_name='bsd_license.html'), name='bsd_license_basic'),
    url(r'^bsd_license/$', 'corehq.apps.hqwebapp.views.bsd_license', name='bsd_license'),
    url(r'^product_agreement/$', 'corehq.apps.hqwebapp.views.product_agreement', name='product_agreement'),
    url(r'^exchange/cda_basic/$', TemplateView.as_view(template_name='cda.html'), name='cda_basic'),
    url(r'^exchange/cda/$', 'corehq.apps.hqwebapp.views.cda', name='cda'),
    url(r'^sms_in/$', 'corehq.apps.sms.views.sms_in', name='sms_in'),
    url(r'^unsubscribe/(?P<user_id>[\w-]+)/',
        'corehq.apps.hqwebapp.views.unsubscribe', name='unsubscribe'),
    (r'^wisepill/', include('custom.apps.wisepill.urls')),
    url(r'^pro_bono/$', ProBonoStaticView.as_view(),
        name=ProBonoStaticView.urlname),
    url(r'^loadtest/', include('corehq.apps.loadtestendpoints.urls')),
) + patterns('', *LOCAL_APP_URLS)

# django rosetta support if configured
if 'rosetta' in settings.INSTALLED_APPS:
    urlpatterns += patterns('',
        url(r'^rosetta/', include('rosetta.urls')),
    )

#django-staticfiles static/ url mapper
if settings.DEBUG:
    urlpatterns += patterns('django.contrib.staticfiles.views',
        url(r'^static/(?P<path>.*)$', 'serve'),
    )
コード例 #5
0
ファイル: urls.py プロジェクト: gmimano/commcaretest
    (r'^translations/', include('corehq.apps.translations.urls')),
    (r'^sqlextract/', include('ctable_view.urls')),
    (r'^500/$', TemplateView.as_view(template_name='500.html')),
    (r'^404/$', TemplateView.as_view(template_name='404.html')),
    url(r'^eula_basic/$', TemplateView.as_view(template_name='eula.html'), name='eula_basic'),
    url(r'^eula/$', 'corehq.apps.hqwebapp.views.eula', name='eula'),
    url(r'^apache_license_basic/$', TemplateView.as_view(template_name='apache_license.html'), name='apache_license_basic'),
    url(r'^apache_license/$', 'corehq.apps.hqwebapp.views.apache_license', name='apache_license'),
    url(r'^bsd_license_basic/$', TemplateView.as_view(template_name='bsd_license.html'), name='bsd_license_basic'),
    url(r'^bsd_license/$', 'corehq.apps.hqwebapp.views.bsd_license', name='bsd_license'),
    url(r'^exchange/cda_basic/$', TemplateView.as_view(template_name='cda.html'), name='cda_basic'),
    url(r'^exchange/cda/$', 'corehq.apps.hqwebapp.views.cda', name='cda'),
    url(r'^sms_in/$', 'corehq.apps.sms.views.sms_in', name='sms_in'),
    url(r'^unsubscribe/(?P<user_id>[\w-]+)/', 'corehq.apps.hqwebapp.views.unsubscribe', name='unsubscribe'),
    (r'^wisepill/', include('custom.apps.wisepill.urls')),
    url(r'pro_bono/$', ProBonoStaticView.as_view(), name=ProBonoStaticView.urlname)
) + patterns('', *LOCAL_APP_URLS)

# django rosetta support if configured
if 'rosetta' in settings.INSTALLED_APPS:
    urlpatterns += patterns('',
        url(r'^rosetta/', include('rosetta.urls')),
    )

#django-staticfiles static/ url mapper
if settings.DEBUG:
    urlpatterns += patterns('django.contrib.staticfiles.views',
        url(r'^static/(?P<path>.*)$', 'serve'),
    )