2009-06-08 16:08:59 +00:00
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
|
|
|
|
# Uncomment the next two lines to enable the admin:
|
|
|
|
# from django.contrib import admin
|
|
|
|
# admin.autodiscover()
|
|
|
|
|
|
|
|
'''
|
|
|
|
files/find
|
|
|
|
files/info
|
|
|
|
files/add
|
|
|
|
files/remove
|
|
|
|
|
|
|
|
movies/find
|
|
|
|
movies/get
|
|
|
|
movies/edit?movie_id...
|
|
|
|
|
|
|
|
subtitles/list?oshash
|
|
|
|
subtitles/get?oshash&language
|
|
|
|
subtitles/add?oshash&language
|
|
|
|
subtitles/remove?oshash&language
|
|
|
|
'''
|
|
|
|
|
2009-12-31 15:04:32 +00:00
|
|
|
urlpatterns = patterns("backend.views",
|
2009-08-01 14:14:54 +00:00
|
|
|
(r'^find', 'find'),
|
2009-06-08 16:08:59 +00:00
|
|
|
(r'^files/find', 'find_files'),
|
|
|
|
(r'^files/info', 'file_info'),
|
2009-12-31 15:04:32 +00:00
|
|
|
(r'^archive/(?P<archive>.+)/update', 'update_archive'),
|
2009-10-04 22:00:08 +00:00
|
|
|
(r'^file/parse', 'file_parse'),
|
2009-08-16 12:23:29 +00:00
|
|
|
(r'^subtitle/get', 'subtitles'),
|
2009-06-08 16:08:59 +00:00
|
|
|
|
|
|
|
# Example:
|
|
|
|
# (r'^oxdata/', include('oxdata.foo.urls')),
|
|
|
|
|
|
|
|
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
|
|
|
|
# to INSTALLED_APPS to enable admin documentation:
|
|
|
|
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
|
|
|
|
|
|
|
# Uncomment the next line to enable the admin:
|
|
|
|
# (r'^admin/(.*)', admin.site.root),
|
|
|
|
)
|
2009-10-07 19:43:46 +00:00
|
|
|
|
|
|
|
#add user urls. login, logout, preferences etc
|
|
|
|
import user_management.urls
|
|
|
|
urlpatterns += user_management.urls.urlpatterns
|
|
|
|
|