# Coverage for /Users/marco/Code/django-rosetta/rosetta/urls.py : 75.00%

## 8 statements 6 run 2 missing 0 excluded 0 partial

Hot-keys on this page

r m x p toggle line displays

j k next/prev highlighted chunk

0 (zero) top of page

1 (one) first highlighted chunk

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 44 45 46 47 48 | from django.conf.urls import url from django.views.generic.base import RedirectView try: from django.urls import reverse_lazy except ImportError: from django.core.urlresolvers import reverse_lazy from . import views urlpatterns = [ url(r'^$', RedirectView.as_view( url=reverse_lazy('rosetta-file-list', kwargs={'po_filter': 'project'}), permanent=False ), name='rosetta-old-home-redirect', ), url(r'^files/$', RedirectView.as_view( url=reverse_lazy('rosetta-file-list', kwargs={'po_filter': 'project'}), permanent=False ), name='rosetta-file-list-redirect', ), url(r'^files/(?P<po_filter>[\w-]+)/$', views.TranslationFileListView.as_view(), name='rosetta-file-list', ), url(r'^files/(?P<po_filter>[\w-]+)/(?P<lang_id>[\w\-_\.]+)/(?P<idx>\d+)/$', views.TranslationFormView.as_view(), name='rosetta-form', ), url(r'^files/(?P<po_filter>[\w-]+)/(?P<lang_id>[\w\-_\.]+)/(?P<idx>\d+)/download/$', views.TranslationFileDownload.as_view(), name='rosetta-download-file', ), url(r'^translate/$', views.translate_text, name='translate_text', ), ]