Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 3e1b98f421
Fetching contributors…

Cannot retrieve contributors at this time

executable file 18 lines (15 sloc) 0.601 kB
# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^', include('nodeshot.urls')),
(r'^admin/', include(admin.site.urls)),
)
# serve static files only if DEBUG and DEVELOPMENT_SERVER are True (in settings.py)
from settings import DEBUG, DEVELOPMENT_SERVER, MEDIA_ROOT
if DEBUG and DEVELOPMENT_SERVER:
# you might need to change "media" to suit your settings.MEDIA_URL
urlpatterns += patterns('',
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT}),
)
Jump to Line
Something went wrong with that request. Please try again.