PageRenderTime 50ms CodeModel.GetById 46ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/demo/urls.py

https://code.google.com/p/django-tracking/
Python | 15 lines | 13 code | 2 blank | 0 comment | 0 complexity | 77cc1f6b2e275f839a333d1cfcf658e2 MD5 | raw file
 1from django.conf import settings
 2from django.conf.urls.defaults import *
 3from django.contrib import admin
 4
 5admin.autodiscover()
 6
 7urlpatterns = patterns('',
 8    (r'^tracking/', include('tracking.urls')),
 9    (r'^admin/', include(admin.site.urls)),
10)
11
12if settings.DEBUG:
13    urlpatterns += patterns('django.views.static',
14        (r'static/(?P<path>.*)$', 'serve', {'document_root': settings.MEDIA_ROOT}),
15    )