xmpp.chapril.org-conversejs/urls.py
2012-02-28 14:55:34 +01:00

17 lines
747 B
Python

from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
# Examples:
# url(r'^$', 'weblate.views.home', name='home'),
# url(r'^weblate/', include('weblate.foo.urls')),
url(r'^(?P<project>[^/]*)/$', 'trans.views.show_project'),
url(r'^(?P<project>[^/]*)/(?P<subproject>[^/]*)/$', 'trans.views.show_subproject'),
url(r'^(?P<project>[^/]*)/(?P<subproject>[^/]*)/(?P<lang>[^/]*)/$', 'trans.views.show_translation'),
url(r'^(?P<project>[^/]*)/(?P<subproject>[^/]*)/(?P<lang>[^/]*)/translate/$', 'trans.views.translate'),
)