src/core/urls.py
author veltr
Fri, 04 Oct 2013 17:54:07 +0200
changeset 133 d4c6a262c600
parent 67 5d9223bb3aab
child 334 169b7cfd1f58
permissions -rw-r--r--
Mobile adaptation for Timeline
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
67
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
# -*- coding: utf-8 -*-
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
'''
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
Created on Jul 17, 2013
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
@author: ymh
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
'''
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
from core.views import SparqlEndpointProxy
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
from django.conf.urls import patterns, url
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
from django.contrib.auth.decorators import login_required
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
urlpatterns = patterns('',    
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
    url(r'^proxy-sparql/(?P<wp_lang>\w{2})/', login_required(SparqlEndpointProxy.as_view()), name='wp_sparql_proxy'),
5d9223bb3aab Add other wikipedia.
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
)