xmpp.chapril.org-conversejs/urls.py

27 lines
1.1 KiB
Python
Raw Normal View History

2012-02-27 09:49:20 +01:00
from django.conf.urls.defaults import patterns, include, url
2012-02-27 10:07:13 +01:00
from django.contrib import admin
admin.autodiscover()
2012-02-27 09:49:20 +01:00
urlpatterns = patterns('',
url(r'^$', 'trans.views.home'),
url(r'^projects/(?P<project>[^/]*)/$', 'trans.views.show_project'),
url(r'^projects/(?P<project>[^/]*)/(?P<subproject>[^/]*)/$', 'trans.views.show_subproject'),
url(r'^projects/(?P<project>[^/]*)/(?P<subproject>[^/]*)/(?P<lang>[^/]*)/$', 'trans.views.show_translation'),
url(r'^projects/(?P<project>[^/]*)/(?P<subproject>[^/]*)/(?P<lang>[^/]*)/translate/$', 'trans.views.translate'),
2012-03-01 17:09:03 +01:00
url(r'^projects/(?P<project>[^/]*)/(?P<subproject>[^/]*)/(?P<lang>[^/]*)/download/$', 'trans.views.download_translation'),
2012-02-27 11:53:02 +01:00
2012-03-02 16:01:53 +01:00
url(r'^js/get/(?P<checksum>[^/]*)/$', 'trans.views.get_string'),
2012-02-29 13:11:39 +01:00
# Admin interface
2012-02-27 11:53:02 +01:00
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
2012-02-29 13:11:39 +01:00
2012-02-29 15:03:45 +01:00
# Auth
2012-03-01 17:43:53 +01:00
url(r'^accounts/', include('registration.urls')),
2012-03-02 16:16:20 +01:00
url(r'^accounts/profile/', 'accounts.views.profile'),
2012-02-29 15:03:45 +01:00
2012-02-29 13:11:39 +01:00
# Media files
url(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': './media'}),
2012-02-27 09:49:20 +01:00
)