Skip to content

Instantly share code, notes, and snippets.

@jumbojet
Created September 23, 2013 22:06
Show Gist options
  • Save jumbojet/6677623 to your computer and use it in GitHub Desktop.
Save jumbojet/6677623 to your computer and use it in GitHub Desktop.
from django.conf.urls.defaults import *
from django.conf.urls import patterns, include, url
from demoapp.views import get_units,calculate_data
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
('^get_units/$',get_units),
('^get_units_sample/$',calculate_data),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment