playlistShorten/urlweb/urls.py

18 lines
529 B
Python
Raw Normal View History

2011-07-20 15:25:26 +00:00
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns(
'',
(r'^$', 'shortener.views.index'),
2011-07-28 19:02:17 +00:00
(r'^admin/', include(admin.site.urls)),
2011-07-20 15:25:26 +00:00
(r'^submit/$', 'shortener.views.submit'),
(r'^(?P<base62_id>\w+)$', 'shortener.views.follow'),
(r'^info/(?P<base62_id>\w+)$', 'shortener.views.info'),
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_DOC_ROOT}),
)