addons-server/mkt/site/urls.py

24 строки
835 B
Python
Исходник Обычный вид История

from django.conf import settings
from django.conf.urls import patterns, url
2012-02-22 22:45:32 +04:00
import jingo
2012-02-22 22:45:32 +04:00
from . import views
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('',
url('^mozmarket.js$', views.mozmarket_js, name='site.mozmarket_js'),
url('^privacy-policy$', template_plus_xframe,
2012-02-22 22:45:32 +04:00
{'template': 'site/privacy-policy.html'}, name='site.privacy'),
url('^terms-of-use$', template_plus_xframe,
2012-02-23 02:53:32 +04:00
{'template': 'site/terms-of-use.html'}, name='site.terms'),
url('^robots.txt$', views.robots, name='robots.txt'),
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
)