This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 235
/
urls.py
43 lines (35 loc) · 1.75 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from django.conf import settings
from django.conf.urls.defaults import patterns, url
from django.http import HttpResponsePermanentRedirect as perma_redirect
from jingo.views import direct_to_template
from amo.urlresolvers import reverse
from . import views
urlpatterns = patterns('',
url('^about$', direct_to_template, {'template': 'pages/about.lhtml'},
name='pages.about'),
url('^credits$', views.credits, name='pages.credits'),
url('^faq$', direct_to_template, {'template': 'pages/faq.html'},
name='pages.faq'),
url('^google1f3e37b7351799a5.html$', direct_to_template,
{'template': 'pages/google_webmaster_verification.html'}),
url('^compatibility_firstrun$', direct_to_template,
{'template': 'pages/acr_firstrun.html'}, name='pages.acr_firstrun'),
url('^developer_faq$', direct_to_template,
{'template': 'pages/dev_faq.html'}, name='pages.dev_faq'),
url('^review_guide$', direct_to_template,
{'template': 'pages/review_guide.html'}, name='pages.review_guide'),
url('^pages/compatibility_firstrun$',
lambda r: perma_redirect(reverse('pages.acr_firstrun'))),
url('^pages/developer_faq$',
lambda r: perma_redirect(reverse('pages.dev_faq'))),
url('^pages/review_guide$',
lambda r: perma_redirect(reverse('pages.review_guide'))),
url('^pages/developer_agreement$',
lambda r: perma_redirect(reverse('devhub.docs',
args=['policies', 'agreement']))),
url('^pages/validation$',
lambda r: perma_redirect(settings.VALIDATION_FAQ_URL)),
url('^sunbird$', direct_to_template,
{'template': 'pages/sunbird.html'}, name='pages.sunbird'),
url('^sunbird/', lambda r: perma_redirect(reverse('pages.sunbird'))),
)