2012-11-13 05:37:32 +04:00
|
|
|
from django.conf import settings
|
2012-09-08 03:10:39 +04:00
|
|
|
from django.conf.urls import patterns, url
|
2012-02-22 22:45:32 +04:00
|
|
|
|
2012-11-13 05:37:32 +04:00
|
|
|
import jingo
|
2012-02-22 22:45:32 +04:00
|
|
|
|
2012-02-29 04:18:09 +04:00
|
|
|
from . import views
|
|
|
|
|
2012-11-13 05:37:32 +04:00
|
|
|
def template_plus_xframe(request, template, **kwargs):
|
|
|
|
r = jingo.render(request, template, kwargs)
|
|
|
|
r['x-frame-options'] = 'allow-from ' + settings.BROWSERID_DOMAIN
|
|
|
|
return r
|
|
|
|
|
2012-02-22 22:45:32 +04:00
|
|
|
|
|
|
|
urlpatterns = patterns('',
|
2012-05-16 01:05:49 +04:00
|
|
|
url('^mozmarket.js$', views.mozmarket_js, name='site.mozmarket_js'),
|
2012-11-13 05:37:32 +04:00
|
|
|
url('^privacy-policy$', template_plus_xframe,
|
2012-02-22 22:45:32 +04:00
|
|
|
{'template': 'site/privacy-policy.html'}, name='site.privacy'),
|
2012-11-13 05:37:32 +04:00
|
|
|
url('^terms-of-use$', template_plus_xframe,
|
2012-02-23 02:53:32 +04:00
|
|
|
{'template': 'site/terms-of-use.html'}, name='site.terms'),
|
2012-02-29 04:18:09 +04:00
|
|
|
url('^robots.txt$', views.robots, name='robots.txt'),
|
2012-04-04 21:33:58 +04:00
|
|
|
url('^manifest.webapp$', views.manifest, name='manifest.webapp'),
|
2012-05-02 03:48:08 +04:00
|
|
|
url('^timing/record$', views.record, name='mkt.timing.record'),
|
2012-02-22 22:45:32 +04:00
|
|
|
)
|