Skip to content

Instantly share code, notes, and snippets.

@saikat
Created February 16, 2010 21:25
Show Gist options
  • Select an option

  • Save saikat/305942 to your computer and use it in GitHub Desktop.

Select an option

Save saikat/305942 to your computer and use it in GitHub Desktop.
from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
admin.autodiscover()
urlpatterns = patterns('',
<all my backend url handlers>),
)
if settings.DEBUG:
import debug_urls
urlpatterns += debug_urls.DEBUG_URLPATTERNS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment