Skip to content

Instantly share code, notes, and snippets.

@berendiwema
Created January 9, 2012 13:46
Show Gist options
  • Select an option

  • Save berendiwema/1583007 to your computer and use it in GitHub Desktop.

Select an option

Save berendiwema/1583007 to your computer and use it in GitHub Desktop.
mainproject.urls:
from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'knowmore_api.views.home', name='home'),
url(r'^v1/', include('knowmore_api.api.urls')),
# 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)),
)
app.urls:
from django.conf.urls.defaults import patterns, include, url
urlpatterns = patterns('',
url(r'^v1/?$', 'api.views.index'),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment