from django.conf.urls import patterns, include, url
from django.views import generic as views
from . import resources

# Uncomment the next two lines to enable the admin:
from django.contrib.gis import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'project.views.home', name='home'),
    # url(r'^project/', include('project.foo.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)),

    url(r'^$',
        views.TemplateView.as_view(template_name='index.html'),
        name='home'),

    url(r'^ratings/$',
        resources.RatingListView.as_view(),
        name='rating_list'),
    url(r'^ratings/(P<id>\d+)$',
        resources.RatingInstanceView.as_view(),
        name='rating_instance'),

    url(r'^survey_session',
        resources.SurveySessionView.as_view(),
        name='survey_session_instance')
)

@@ -833,16 +833,17 @@
 atings/(
+?
 P%3Cid%3E%5Cd+

Correct the url for the rating instance resource