コード例 #1
0
releasenotes_re = latest_re % (version_re, r'(aurora|release)notes')
android_releasenotes_re = releasenotes_re.replace('firefox', 'firefox/android')
ios_releasenotes_re = releasenotes_re.replace('firefox', 'firefox/ios')
sysreq_re = latest_re % (version_re, 'system-requirements')
android_sysreq_re = sysreq_re.replace('firefox', 'firefox/android')
ios_sysreq_re = sysreq_re.replace('firefox', 'firefox/ios')


urlpatterns = (
    url(r'^firefox/$', views.FirefoxHubView.as_view(), name='firefox'),
    url(r'^firefox/(?:%s/)?(?:%s/)?all/$' % (platform_re, channel_re),
        views.all_downloads, name='firefox.all'),
    page('firefox/accounts', 'firefox/accounts.html'),
    url('^firefox/accounts/features/$',
        VariationTemplateView.as_view(
            template_name='firefox/accounts-features.html',
            template_context_variations=['a', 'b']),
            name='firefox.accounts-features'),
    page('firefox/channel/desktop', 'firefox/channel/desktop.html'),
    page('firefox/channel/android', 'firefox/channel/android.html'),
    page('firefox/channel/ios', 'firefox/channel/ios.html'),
    page('firefox/developer', 'firefox/developer/index.html'),
    page('firefox/enterprise', 'firefox/enterprise/index.html'),
    page('firefox/enterprise/signup', 'firefox/enterprise/signup.html'),
    page('firefox/enterprise/signup/thanks', 'firefox/enterprise/signup-thanks.html'),
    page('firefox/facebookcontainer', 'firefox/facebookcontainer/index.html'),
    page('firefox/features', 'firefox/features/index.html'),
    url('^firefox/features/bookmarks/$',
        views.FeaturesBookmarksView.as_view(),
        name='firefox.features.bookmarks'),
    url('^firefox/features/fast/$',
コード例 #2
0
releasenotes_re = latest_re % (version_re, r'(aurora|release)notes')
android_releasenotes_re = releasenotes_re.replace('firefox', 'firefox/android')
ios_releasenotes_re = releasenotes_re.replace('firefox', 'firefox/ios')
sysreq_re = latest_re % (version_re, 'system-requirements')
android_sysreq_re = sysreq_re.replace('firefox', 'firefox/android')
ios_sysreq_re = sysreq_re.replace('firefox', 'firefox/ios')


urlpatterns = (
    redirect(r'^firefox/$', 'firefox.new', name='firefox', locale_prefix=False),
    url(r'^firefox/(?:%s/)?(?:%s/)?all/$' % (platform_re, channel_re),
        views.all_downloads, name='firefox.all'),
    page('firefox/accounts', 'firefox/accounts.html'),
    url(r'^firefox/channel/desktop/$',
        VariationTemplateView.as_view(template_name='firefox/channel/desktop.html',
                                      template_context_variations=['b'],
                                      variation_locales=['en-US']),
        name='firefox.channel.desktop'),
    page('firefox/channel/android', 'firefox/channel/android.html'),
    page('firefox/channel/ios', 'firefox/channel/ios.html'),
    page('firefox/desktop', 'firefox/desktop/index.html'),
    page('firefox/desktop/fast', 'firefox/desktop/fast.html'),
    page('firefox/desktop/customize', 'firefox/desktop/customize.html'),
    page('firefox/desktop/tips', 'firefox/desktop/tips.html'),
    page('firefox/desktop/trust', 'firefox/desktop/trust.html'),
    url(r'^firefox/developer/$',
        VariationTemplateView.as_view(template_name='firefox/developer.html',
                                      template_context_variations=['b'],
                                      variation_locales=['en-US']),
        name='firefox.developer'),
    page('firefox/features', 'firefox/features.html'),
コード例 #3
0
ファイル: urls.py プロジェクト: manishsamota/bedrock
    page('firefox/lockwise', 'firefox/products/lockwise.html', ftl_files=['firefox/products/lockwise']),

    # Issue 7765, 7709
    page('firefox/privacy', 'firefox/privacy/index.html', ftl_files=['firefox/privacy-hub']),
    page('firefox/privacy/products', 'firefox/privacy/products.html', ftl_files=['firefox/privacy-hub']),

    # Issue 8432
    page('firefox/set-as-default/thanks', 'firefox/set-as-default/thanks.html', ftl_files='firefox/set-as-default/thanks'),
    # Default browser campaign
    page('firefox/set-as-default', 'firefox/set-as-default/landing.html', ftl_files='firefox/set-as-default/landing'),

    # Issue 8536
    page('firefox/retention/thank-you', 'firefox/retention/thank-you.html'),

    # Unfck campaign
    url(r'^firefox/unfck/$',
        VariationTemplateView.as_view(template_name='firefox/campaign/unfck/index.html',
                                      template_name_variations=['1', '2'],
                                      variation_locales=['de'],
                                      active_locales=['de', 'en-US', 'fr']),
        name='firefox.campaign.unfck.index'),

    # Issue #9490 - Evergreen Content for SEO
    page('firefox/more', 'firefox/more.html', ftl_files='firefox/more'),
    page('firefox/browsers/quantum', 'firefox/browsers/quantum.html', ftl_files='firefox/browsers/quantum'),
    page('firefox/faq', 'firefox/faq.html', ftl_files='firefox/faq'),
    page('firefox/browsers/chromebook', 'firefox/browsers/chromebook.html', ftl_files='firefox/browsers/chromebook'),
    page('firefox/sync', 'firefox/sync.html', ftl_files='firefox/sync'),
    page('firefox/privacy/book', 'firefox/privacy/book.html', ftl_files='firefox/privacy/book'),
)
コード例 #4
0
channel_re = '(?P<channel>beta|aurora|developer|nightly|organizations)'
releasenotes_re = latest_re % (version_re, r'(aurora|release)notes')
android_releasenotes_re = releasenotes_re.replace('firefox', 'firefox/android')
ios_releasenotes_re = releasenotes_re.replace('firefox', 'firefox/ios')
sysreq_re = latest_re % (version_re, 'system-requirements')
android_sysreq_re = sysreq_re.replace('firefox', 'firefox/android')
ios_sysreq_re = sysreq_re.replace('firefox', 'firefox/ios')

urlpatterns = (
    # Issue 5944 pre-download newsletter test.
    # When removing this experiment, please remember to unskip the
    # functional test in /test/functional/firefox/test_home.py
    url(r'^firefox/$',
        VariationTemplateView.as_view(
            template_name='firefox/home.html',
            template_context_variations=['a', 'b', 'c'],
            template_name_variations=['a', 'b', 'c'],
            variation_locales=['en-US', 'en-GB', 'en-CA', 'en-ZA', 'de',
                               'fr']),
        name='firefox'),
    url(r'^firefox/(?:%s/)?(?:%s/)?all/$' % (platform_re, channel_re),
        views.all_downloads,
        name='firefox.all'),
    url(r'^firefox/accounts/', views.firefox_accounts,
        name='firefox.accounts'),
    page('firefox/channel/desktop', 'firefox/channel/desktop.html'),
    page('firefox/channel/android', 'firefox/channel/android.html'),
    page('firefox/channel/ios', 'firefox/channel/ios.html'),
    url(r'^firefox/concerts/', views.firefox_concerts,
        name='firefox.concerts'),
    page('firefox/developer', 'firefox/developer/index.html'),
    page('firefox/election', 'firefox/election/index.html'),
コード例 #5
0
ファイル: urls.py プロジェクト: YuriyCherniy/bedrock
 page("firefox/features/safebrowser", "firefox/features/safebrowser.html"),
 path("firefox/features/translate/",
      views.firefox_features_translate,
      name="firefox.features.translate"),
 page(
     "firefox/features/picture-in-picture",
     "firefox/features/picture-in-picture.html",
     ftl_files=[
         "firefox/features/shared", "firefox/features/picture-in-picture"
     ],
 ),
 path(
     "firefox/features/tips/",
     VariationTemplateView.as_view(
         template_name="firefox/features/tips/tips.html",
         template_context_variations=[
             "picture-in-picture", "eyedropper", "forget"
         ],
     ),
     name="firefox.features.tips",
 ),
 path("firefox/ios/testflight/",
      views.ios_testflight,
      name="firefox.ios.testflight"),
 page("firefox/mobile/get-app",
      "firefox/mobile/get-app.html",
      ftl_files=["firefox/mobile"]),
 path("firefox/send-to-device-post/",
      views.send_to_device_ajax,
      name="firefox.send-to-device-post"),
 page("firefox/unsupported-systems", "firefox/unsupported-systems.html"),
 path("firefox/new/", views.NewView.as_view(), name="firefox.new"),
コード例 #6
0
    page('firefox/private-browsing',
         'firefox/private-browsing.html',
         alt_canonical_paths={
             'en-US': '/firefox/features/private-browsing/',
         }),
    page('firefox/products',
         'firefox/family/index.html',
         alt_canonical_paths={
             'en-US': '/firefox/',
         }),
    url('^firefox/send-to-device-post/$',
        views.send_to_device_ajax,
        name='firefox.send-to-device-post'),
    url(r'^firefox/sync/$',
        VariationTemplateView.as_view(template_name='firefox/sync.html',
                                      template_context_variations=['2', '3'],
                                      variation_locales=['en-US']),
        name='firefox.sync'),
    page('firefox/unsupported-systems', 'firefox/unsupported-systems.html'),
    url(r'^firefox/new/$', views.new, name='firefox.new'),
    page('firefox/organizations/faq', 'firefox/organizations/faq.html'),
    page('firefox/organizations', 'firefox/organizations/organizations.html'),
    page('firefox/nightly/firstrun', 'firefox/nightly_firstrun.html'),
    url(r'^firefox/installer-help/$',
        views.installer_help,
        name='firefox.installer-help'),
    page('firefox/unsupported/warning', 'firefox/unsupported/warning.html'),
    page('firefox/unsupported/EOL', 'firefox/unsupported/EOL.html'),
    page('firefox/unsupported/mac', 'firefox/unsupported/mac.html'),
    page('firefox/unsupported/details', 'firefox/unsupported/details.html'),
コード例 #7
0
ファイル: urls.py プロジェクト: Sancus/bedrock
        views.FirefoxProductIOSView.as_view(),
        name='firefox.ios'),
    url(r'^firefox/ios/testflight', views.ios_testflight, name='firefox.ios.testflight'),
    page('firefox/mobile-download', 'firefox/mobile-download.html'),
    page('firefox/mobile-download/desktop', 'firefox/mobile-download-desktop.html'),
    page('firefox/private-browsing', 'firefox/private-browsing.html', alt_canonical_paths={
        'en-US': '/firefox/features/private-browsing/',
    }),
    page('firefox/products', 'firefox/family/index.html', alt_canonical_paths={
        'en-US': '/firefox/',
    }),
    url('^firefox/send-to-device-post/$', views.send_to_device_ajax,
        name='firefox.send-to-device-post'),
    url(r'^firefox/sync/$',
        VariationTemplateView.as_view(template_name='firefox/sync.html',
                                      template_context_variations=['2', '3'],
                                      variation_locales=['en-US']),
        name='firefox.sync'),
    page('firefox/unsupported-systems', 'firefox/unsupported-systems.html'),
    url(r'^firefox/new/$', views.new, name='firefox.new'),
    page('firefox/organizations/faq', 'firefox/organizations/faq.html'),
    page('firefox/organizations', 'firefox/organizations/organizations.html'),
    page('firefox/nightly/firstrun', 'firefox/nightly_firstrun.html'),
    url(r'^firefox/installer-help/$', views.installer_help,
        name='firefox.installer-help'),

    page('firefox/unsupported/warning', 'firefox/unsupported/warning.html'),
    page('firefox/unsupported/EOL', 'firefox/unsupported/EOL.html'),
    page('firefox/unsupported/mac', 'firefox/unsupported/mac.html'),
    page('firefox/unsupported/details', 'firefox/unsupported/details.html'),
コード例 #8
0
ファイル: urls.py プロジェクト: craigcook/bedrock
     views.FeaturesBookmarksView.as_view(),
     name='firefox.features.bookmarks'),
 url('^firefox/features/fast/$',
     views.FeaturesFastView.as_view(),
     name='firefox.features.fast'),
 url('^firefox/features/independent/$',
     views.FeaturesIndependentView.as_view(),
     name='firefox.features.independent'),
 url('^firefox/features/memory/$',
     views.FeaturesMemoryView.as_view(),
     name='firefox.features.memory'),
 url('^firefox/features/password-manager/$',
     views.FeaturesPasswordManagerView.as_view(),
     name='firefox.features.password-manager'),
 url('^firefox/features/private-browsing/$',
     VariationTemplateView.as_view(template_name='firefox/features/private-browsing.html',
                                   template_context_variations=['a']),
     name='firefox.features.private-browsing'),
 url(r'^firefox/ios/testflight/$', views.ios_testflight, name='firefox.ios.testflight'),
 page('firefox/mobile', 'firefox/mobile.html'),
 url('^firefox/send-to-device-post/$', views.send_to_device_ajax,
     name='firefox.send-to-device-post'),
 page('firefox/unsupported-systems', 'firefox/unsupported-systems.html'),
 url(r'^firefox/new/$', views.new, name='firefox.new'),
 url(r'^firefox/download/thanks/$', views.download_thanks, name='firefox.download.thanks'),
 page('firefox/organizations', 'firefox/organizations/organizations.html'),
 page('firefox/nightly/firstrun', 'firefox/nightly_firstrun.html'),
 url(r'^firefox/installer-help/$', views.installer_help,
     name='firefox.installer-help'),
 url(firstrun_re, views.FirstrunView.as_view(), name='firefox.firstrun'),
 url(whatsnew_re, views.WhatsnewView.as_view(), name='firefox.whatsnew'),
 url(tracking_protection_re, views.TrackingProtectionTourView.as_view(),
コード例 #9
0
     name='firefox.features.bookmarks'),
 url('^firefox/features/fast/$',
     views.FeaturesFastView.as_view(),
     name='firefox.features.fast'),
 url('^firefox/features/independent/$',
     views.FeaturesIndependentView.as_view(),
     name='firefox.features.independent'),
 url('^firefox/features/memory/$',
     views.FeaturesMemoryView.as_view(),
     name='firefox.features.memory'),
 url('^firefox/features/password-manager/$',
     views.FeaturesPasswordManagerView.as_view(),
     name='firefox.features.password-manager'),
 url('^firefox/features/private-browsing/$',
     VariationTemplateView.as_view(
         template_name='firefox/features/private-browsing.html',
         template_context_variations=['a']),
     name='firefox.features.private-browsing'),
 url(r'^firefox/ios/testflight/$',
     views.ios_testflight,
     name='firefox.ios.testflight'),
 page('firefox/mobile', 'firefox/mobile.html'),
 url('^firefox/send-to-device-post/$',
     views.send_to_device_ajax,
     name='firefox.send-to-device-post'),
 page('firefox/unsupported-systems', 'firefox/unsupported-systems.html'),
 url(r'^firefox/new/$', views.new, name='firefox.new'),
 url(r'^firefox/download/thanks/$',
     views.download_thanks,
     name='firefox.download.thanks'),
 page('firefox/organizations', 'firefox/organizations/organizations.html'),
コード例 #10
0
ファイル: urls.py プロジェクト: razzlepdx/bedrock
channel_re = '(?P<channel>beta|aurora|developer|nightly|organizations)'
releasenotes_re = latest_re % (version_re, r'(aurora|release)notes')
android_releasenotes_re = releasenotes_re.replace('firefox', 'firefox/android')
ios_releasenotes_re = releasenotes_re.replace('firefox', 'firefox/ios')
sysreq_re = latest_re % (version_re, 'system-requirements')
android_sysreq_re = sysreq_re.replace('firefox', 'firefox/android')
ios_sysreq_re = sysreq_re.replace('firefox', 'firefox/ios')

urlpatterns = (
    # Issue 5944 pre-download newsletter test.
    # When removing this experiment, please remember to unskip the
    # functional test in /test/functional/firefox/test_home.py
    url(r'^firefox/$',
        VariationTemplateView.as_view(
            template_name='firefox/home.html',
            template_context_variations=['a', 'b', 'c'],
            template_name_variations=['a', 'b', 'c'],
            variation_locales=['en-US']),
        name='firefox'),
    url(r'^firefox/(?:%s/)?(?:%s/)?all/$' % (platform_re, channel_re),
        views.all_downloads,
        name='firefox.all'),
    page('firefox/accounts', 'firefox/accounts.html'),
    url('^firefox/accounts/features/$',
        VariationTemplateView.as_view(
            template_name='firefox/accounts-features.html',
            template_context_variations=['a', 'b']),
        name='firefox.accounts-features'),
    page('firefox/channel/desktop', 'firefox/channel/desktop.html'),
    page('firefox/channel/android', 'firefox/channel/android.html'),
    page('firefox/channel/ios', 'firefox/channel/ios.html'),
コード例 #11
0
ファイル: urls.py プロジェクト: thepro-dot-xyz/bedrock
     name='firefox.features.independent'),
 url('^firefox/features/memory/$',
     views.FeaturesMemoryView.as_view(),
     name='firefox.features.memory'),
 url('^firefox/features/password-manager/$',
     views.FeaturesPasswordManagerView.as_view(),
     name='firefox.features.password-manager'),
 url('^firefox/features/private-browsing/$',
     views.FeaturesPrivateBrowsingView.as_view(),
     name='firefox.features.private-browsing'),
 url(r'^firefox/ios/testflight/$',
     views.ios_testflight,
     name='firefox.ios.testflight'),
 url('^firefox/mobile/$',
     VariationTemplateView.as_view(
         template_name='firefox/mobile/index.html',
         template_context_variations=['a', 'b']),
     name='firefox.mobile.index'),
 page('firefox/mobile/get-app', 'firefox/mobile/get-app.html'),
 url('^firefox/send-to-device-post/$',
     views.send_to_device_ajax,
     name='firefox.send-to-device-post'),
 page('firefox/unsupported-systems', 'firefox/unsupported-systems.html'),
 url(r'^firefox/new/$', views.NewView.as_view(), name='firefox.new'),
 url(r'^firefox/download/thanks/$',
     views.DownloadThanksView.as_view(),
     name='firefox.download.thanks'),
 page('firefox/nightly/firstrun', 'firefox/nightly_firstrun.html'),
 url(r'^firefox/installer-help/$',
     views.InstallerHelpView.as_view(),
     name='firefox.installer-help'),
コード例 #12
0
 page("firefox/features/safebrowser/", "firefox/features/safebrowser.html"),
 path("firefox/features/translate/",
      views.firefox_features_translate,
      name="firefox.features.translate"),
 page(
     "firefox/features/picture-in-picture/",
     "firefox/features/picture-in-picture.html",
     ftl_files=[
         "firefox/features/shared", "firefox/features/picture-in-picture"
     ],
 ),
 path(
     "firefox/features/tips/",
     VariationTemplateView.as_view(
         template_name="firefox/features/tips/tips.html",
         template_context_variations=[
             "picture-in-picture", "eyedropper", "forget"
         ],
     ),
     name="firefox.features.tips",
 ),
 path("firefox/ios/testflight/",
      views.ios_testflight,
      name="firefox.ios.testflight"),
 path(
     "firefox/mobile/get-app/",
     VariationTemplateView.as_view(
         template_name="firefox/mobile/get-app.html",
         template_context_variations=["mfm", "eco-a", "eco-b", "eco-c"],
         ftl_files=["firefox/mobile"]),
     name="firefox.mobile.get-app",
 ),
コード例 #13
0
ファイル: urls.py プロジェクト: cadecairos/bedrock
releasenotes_re = latest_re % (version_re, r'(aurora|release)notes')
android_releasenotes_re = releasenotes_re.replace('firefox', 'firefox/android')
ios_releasenotes_re = releasenotes_re.replace('firefox', 'firefox/ios')
sysreq_re = latest_re % (version_re, 'system-requirements')
android_sysreq_re = sysreq_re.replace('firefox', 'firefox/android')
ios_sysreq_re = sysreq_re.replace('firefox', 'firefox/ios')


urlpatterns = (
    url(r'^firefox/$', views.firefox_home, name='firefox'),
    url(r'^firefox/(?:%s/)?(?:%s/)?all/$' % (platform_re, channel_re),
        views.all_downloads, name='firefox.all'),
    page('firefox/accounts', 'firefox/accounts.html'),
    url('^firefox/accounts/features/$',
        VariationTemplateView.as_view(
            template_name='firefox/accounts-features.html',
            template_context_variations=['a', 'b']),
            name='firefox.accounts-features'),
    page('firefox/channel/desktop', 'firefox/channel/desktop.html'),
    page('firefox/channel/android', 'firefox/channel/android.html'),
    page('firefox/channel/ios', 'firefox/channel/ios.html'),
    page('firefox/developer', 'firefox/developer/index.html'),
    page('firefox/election', 'firefox/election/index.html'),
    page('firefox/enterprise', 'firefox/enterprise/index.html'),
    page('firefox/enterprise/signup', 'firefox/enterprise/signup.html'),
    page('firefox/enterprise/signup/thanks', 'firefox/enterprise/signup-thanks.html'),
    page('firefox/facebookcontainer', 'firefox/facebookcontainer/index.html'),
    url(r'^firefox/features/$',
        VariationTemplateView.as_view(template_name='firefox/features/index.html',
            template_context_variations=['a', 'b']),
            name='firefox.features.index'),
コード例 #14
0
ファイル: urls.py プロジェクト: fmarier/bedrock
channel_re = '(?P<channel>beta|aurora|developer|nightly|organizations)'
releasenotes_re = latest_re % (version_re, r'(aurora|release)notes')
android_releasenotes_re = releasenotes_re.replace('firefox', 'firefox/android')
ios_releasenotes_re = releasenotes_re.replace('firefox', 'firefox/ios')
sysreq_re = latest_re % (version_re, 'system-requirements')
android_sysreq_re = sysreq_re.replace('firefox', 'firefox/android')
ios_sysreq_re = sysreq_re.replace('firefox', 'firefox/ios')


urlpatterns = (
    # Issue 5944 pre-download newsletter test.
    # When removing this experiment, please remember to unskip the
    # functional test in /test/functional/firefox/test_home.py
    url(r'^firefox/$',
        VariationTemplateView.as_view(template_name='firefox/home.html',
                                      template_context_variations=['a', 'b', 'c'],
                                      template_name_variations=['a', 'b', 'c'],
                                      variation_locales=['en-US', 'en-GB', 'en-CA', 'en-ZA', 'de', 'fr']),
        name='firefox'),
    url(r'^firefox/(?:%s/)?(?:%s/)?all/$' % (platform_re, channel_re),
        views.all_downloads, name='firefox.all'),
    url(r'^firefox/accounts/', views.firefox_accounts, name='firefox.accounts'),
    page('firefox/channel/desktop', 'firefox/channel/desktop.html'),
    page('firefox/channel/android', 'firefox/channel/android.html'),
    page('firefox/channel/ios', 'firefox/channel/ios.html'),
    url(r'^firefox/concerts/', views.firefox_concerts, name='firefox.concerts'),
    page('firefox/developer', 'firefox/developer/index.html'),
    page('firefox/election', 'firefox/election/index.html'),
    page('firefox/enterprise', 'firefox/enterprise/index.html'),
    page('firefox/enterprise/signup', 'firefox/enterprise/signup.html'),
    page('firefox/enterprise/signup/thanks', 'firefox/enterprise/signup-thanks.html'),
    page('firefox/facebookcontainer', 'firefox/facebookcontainer/index.html'),
コード例 #15
0
ファイル: urls.py プロジェクト: yatharth01/bedrock
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from django.conf.urls import url

from .util import page
from . import views
from bedrock.redirects.util import redirect
from bedrock.utils.views import VariationTemplateView


urlpatterns = (
    url(r'^$', VariationTemplateView.as_view(template_name='mozorg/home/home.html',
                                             template_name_variations=['a', 'b'],
                                             variation_locales=['en-US']),
        name='mozorg.home'),
    page('about', 'mozorg/about.html'),
    page('about/manifesto', 'mozorg/about/manifesto.html'),
    page('about/manifesto/details', 'mozorg/about/manifesto-details.html'),
    page('about/leadership', 'mozorg/about/leadership.html'),
    page('about/policy/lean-data', 'mozorg/about/policy/lean-data.html'),
    page('about/policy/patents', 'mozorg/about/policy/patents/index.html'),
    page('about/policy/patents/license', 'mozorg/about/policy/patents/license.html'),
    page('about/policy/patents/license/1.0', 'mozorg/about/policy/patents/license-1.0.html'),
    page('about/policy/patents/guide', 'mozorg/about/policy/patents/guide.html'),
    page('book', 'mozorg/book.html'),
    url('^credits/$', views.credits_view, name='mozorg.credits'),
    page('credits/faq', 'mozorg/credits-faq.html'),
    page('developer/browsertest', 'mozorg/browser-test.html'),
    page('about/partnerships/distribution', 'mozorg/partnerships-distribution.html'),
コード例 #16
0
ファイル: urls.py プロジェクト: Ryan1208/bedrock
 page("firefox/features/safebrowser", "firefox/features/safebrowser.html"),
 path("firefox/features/translate/",
      views.firefox_features_translate,
      name="firefox.features.translate"),
 page(
     "firefox/features/picture-in-picture",
     "firefox/features/picture-in-picture.html",
     ftl_files=[
         "firefox/features/shared", "firefox/features/picture-in-picture"
     ],
 ),
 path(
     "firefox/features/tips/",
     VariationTemplateView.as_view(
         template_name="firefox/features/tips/tips.html",
         template_context_variations=[
             "picture-in-picture", "eyedropper", "forget"
         ],
     ),
     name="firefox.features.tips",
 ),
 path("firefox/ios/testflight/",
      views.ios_testflight,
      name="firefox.ios.testflight"),
 path(
     "firefox/mobile/get-app/",
     VariationTemplateView.as_view(
         template_name="firefox/mobile/get-app.html",
         template_context_variations=["mfm"],
         ftl_files=["firefox/mobile"]),
     name="firefox.mobile.get-app",
 ),