Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (20 sloc) 838 Bytes
from django.conf import settings
from django.conf.urls.defaults import *
from django.contrib import admin
from admin import site
urlpatterns = patterns('',
(r'^chiplog/', include('chiplog.urls')),
(r'^accounts/login/$', 'django.contrib.auth.views.login'),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/(.*)', site.root),
)
# This allows Django to serve static files when you're developing your project.
# You'll have to do something else in production.
# More information: http://www.djangoproject.com/documentation/static_files/
# -----------------------------------------------------------------------------
if settings.DEBUG:
urlpatterns += patterns("django.views",
url(r"^static/(?P<path>.*)", "static.serve", {
"document_root": settings.MEDIA_ROOT,
})
)