from django.conf.urls.defaults import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'trans.views.home'), url(r'^projects/(?P[^/]*)/$', 'trans.views.show_project'), url(r'^projects/(?P[^/]*)/(?P[^/]*)/$', 'trans.views.show_subproject'), url(r'^projects/(?P[^/]*)/(?P[^/]*)/(?P[^/]*)/$', 'trans.views.show_translation'), url(r'^projects/(?P[^/]*)/(?P[^/]*)/(?P[^/]*)/translate/$', 'trans.views.translate'), url(r'^projects/(?P[^/]*)/(?P[^/]*)/(?P[^/]*)/download/$', 'trans.views.download_translation'), url(r'^js/get/(?P[^/]*)/$', 'trans.views.get_string'), # Admin interface url(r'^admin/doc/', include('django.contrib.admindocs.urls')), url(r'^admin/', include(admin.site.urls)), # Auth url(r'^accounts/', include('registration.urls')), url(r'^accounts/profile/', 'accounts.views.profile'), # Media files url(r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': './media'}), )