Mercurial > hg > djangoSolrSearchProxy
comparison searchProxy/urls.py @ 0:af2f8fe486f6 default tip
initial
author | Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 17 Feb 2015 12:44:40 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:af2f8fe486f6 |
---|---|
1 from django.conf.urls import patterns, include, url | |
2 from django.contrib import admin | |
3 import proxy.views | |
4 import ttools.views | |
5 from django.views.decorators.csrf import csrf_protect | |
6 from django.views.generic import TemplateView | |
7 | |
8 | |
9 | |
10 | |
11 urlpatterns = patterns('', | |
12 # Examples: | |
13 # url(r'^$', 'searchProxy.views.home', name='home'), | |
14 # url(r'^blog/', include('blog.urls')), | |
15 | |
16 url(r'^admin/', include(admin.site.urls)), | |
17 url(r'^search/(?P<proxyId>.*)/(?P<command>.*)$',proxy.views.SearchProxyView.as_view(), name='showSource'), | |
18 url(r'^searchall/(?P<command>.*)$',proxy.views.SearchAllView.as_view(), name='showallSource'), | |
19 url(r'^getMD/(?P<objid>.*)$',proxy.views.GetMD.as_view(), name='getMD '), | |
20 url(r'^tt$',ttools.views.TextToolAnalyse.as_view()), | |
21 url(r'^tt/api$',TemplateView.as_view(template_name="api.html")) | |
22 ) |