18 lines
529 B
Python
18 lines
529 B
Python
from django.conf.urls.defaults import *
|
|
from django.contrib import admin
|
|
from django.conf import settings
|
|
|
|
admin.autodiscover()
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
(r'^$', 'shortener.views.index'),
|
|
(r'^admin/', include(admin.site.urls)),
|
|
(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}),
|
|
)
|