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\w+)$', 'shortener.views.follow'), (r'^info/(?P\w+)$', 'shortener.views.info'), (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}), )