Tony Mack | 176c5f1 | 2013-04-09 18:55:07 -0400 | [diff] [blame] | 1 | from django.conf.urls import patterns, include, url |
| 2 | |
| 3 | # Uncomment the next two lines to enable the admin: |
| 4 | from django.contrib import admin |
| 5 | from plstackapi.planetstack.api_root import api_root |
| 6 | from rest_framework import generics |
| 7 | |
| 8 | admin.autodiscover() |
| 9 | |
| 10 | urlpatterns = patterns('', |
| 11 | # Examples: |
| 12 | # url(r'^$', 'planetstack.views.home', name='home'), |
| 13 | # url(r'^planetstack/', include('planetstack.foo.urls')), |
| 14 | |
| 15 | # Uncomment the admin/doc line below to enable admin documentation: |
| 16 | # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), |
| 17 | |
| 18 | # Uncomment the next line to enable the admin: |
| 19 | url(r'^admin/', include(admin.site.urls)), |
| 20 | |
| 21 | url(r'^plstackapi/$', api_root), |
| 22 | |
| 23 | #Adding in rest_framework urls |
| 24 | url(r'^plstackapi/', include('rest_framework.urls', namespace='rest_framework')), |
| 25 | |
| 26 | ) |