Exemplo n.º 1
0
from django.conf.urls.defaults import *
from django.conf import settings
from product_details import product_details

from firefox import version_re
from mozorg.util import page, redirect
import views

whatsnew_re = r'^firefox(?:/(%s))?/whatsnew/$' % version_re

urlpatterns = patterns('',
    page('firefox/central', 'firefox/central.html'),
    page('firefox/channel', 'firefox/channel.html'),
    redirect('^firefox/channel/android/$', 'firefox.channel'),
    page('firefox/customize', 'firefox/customize.html'),
    page('firefox/features', 'firefox/features.html'),
    page('firefox/fx', 'firefox/fx.html',
         latest_version=product_details.firefox_versions['LATEST_FIREFOX_VERSION']),
    page('firefox/geolocation', 'firefox/geolocation.html',
         gmap_api_key=settings.GMAP_API_KEY),
    page('firefox/happy', 'firefox/happy.html'),
    page('firefox/memory', 'firefox/memory.html',
         latest_version=product_details.firefox_versions['LATEST_FIREFOX_VERSION']),
    url('^firefox/mobile/platforms/$', views.platforms, name='firefox.mobile.platforms'),
    page('firefox/mobile/features', 'firefox/mobile/features.html'),
    page('firefox/mobile/faq', 'firefox/mobile/faq.html'),
    url('^firefox/sms/$', views.sms_send, name='firefox.sms'),
    page('firefox/sms/sent', 'firefox/mobile/sms-thankyou.html'),
    page('firefox/new', 'firefox/new.html'),
    page('firefox/organizations/faq', 'firefox/organizations/faq.html'),
    page('firefox/organizations', 'firefox/organizations/organizations.html'),
Exemplo n.º 2
0
from django.conf.urls.defaults import *
from mozorg.util import page, redirect

import views

urlpatterns = patterns(
    '',
    url(r'^$', views.grants, name='grants'),
    url(r'^(?P<slug>[\w-]+).html$', views.grant_info, name='grant_info'),
    page('reports/gnome-haeger-report',
         'grants/reports/gnome-haeger-report.html'),
    page('reports/ushahidi-chile-report',
         'grants/reports/ushahidi-chile-report.html'),
    redirect(r'.*/$', views.grants),
)
Exemplo n.º 3
0
import os
from django.conf.urls.defaults import include, patterns, url
from django.http import HttpResponse

from funfactory.manage import ROOT

from mozorg.util import page, redirect


def mock_view(request):
    return HttpResponse('test')


urlpatterns = patterns(
    '',
    (r'', include('%s.urls' % os.path.basename(ROOT))),

    # Used by test_util
    url(r'^mock/view/$', mock_view, name='mock_view'),
    redirect(r'^gloubi-boulga/$', 'mock_view'),
    redirect(r'^gloubi-boulga/tmp/$', 'mock_view', permanent=False),

    # Used by test_helper
    page('base', 'base-resp.html'),
)
Exemplo n.º 4
0
from django.conf.urls.defaults import patterns, url
from django.http import HttpResponse

from mozorg.util import redirect


def mock_view(request):
    return HttpResponse('test')

urlpatterns = patterns('',
    url(r'^mock/view/$', mock_view, name='mock_view'),
    redirect(r'^gloubi-boulga/$', 'mock_view'),
    redirect(r'^gloubi-boulga/tmp/$', 'mock_view', permanent=False),
)
Exemplo n.º 5
0
from django.conf.urls.defaults import *
from mozorg.util import page, redirect

import views


urlpatterns = patterns('',
    url(r'^$', views.grants, name='grants'),
    url(r'^(?P<slug>[\w-]+).html$', views.grant_info, name='grant_info'),
    page('reports/gnome-haeger-report', 'grants/reports/gnome-haeger-report.html'),
    page('reports/ushahidi-chile-report', 'grants/reports/ushahidi-chile-report.html'),
    redirect(r'.*/$', views.grants),
)