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[^/]*)/$', 'trans.views.show_project'), url(r'^(?P[^/]*)/(?P[^/]*)/$', 'trans.views.show_subproject'), url(r'^(?P[^/]*)/(?P[^/]*)/(?P[^/]*)/$', 'trans.views.show_translation'), url(r'^(?P[^/]*)/(?P[^/]*)/(?P[^/]*)/translate/$', 'trans.views.translate'), )