
from django.conf.urls import patterns, include, url
from django.contrib import admin

from trex.views.project import (
    ProjectListCreateAPIView, ProjectDetailAPIView)


urlpatterns = patterns(
    '',
    url(r"^admin/", include(admin.site.urls)),
    url(r"^projects/$", ProjectListCreateAPIView.as_view(),
        name="project-list"),
    url(r"^projects/(?P<pk>[0-9]+)/$", ProjectDetailAPIView.as_view(),
        name="project-detail"),
)


from django.conf.urls import patterns, include, url
from django.contrib import admin

from trex.views.project import (
    ProjectListCreateAPIView, ProjectDetailAPIView, EntryDetailAPIView)


urlpatterns = patterns(
    '',
    url(r"^admin/", include(admin.site.urls)),
    url(r"^projects/$", ProjectListCreateAPIView.as_view(),
        name="project-list"),
    url(r"^projects/(?P<pk>[0-9]+)/$", ProjectDetailAPIView.as_view(),
        name="project-detail"),
    url(r"^entries/(?P<pk>[0-9]+)/$", EntryDetailAPIView.as_view(),
        name="entry-detail"),
)

Add url mapping for EntryDetailAPIView
Add url mapping for EntryDetailAPIView

  
  from django.conf.urls import patterns, include, url
  from django.contrib import admin
  
  from trex.views.project import (
-     ProjectListCreateAPIView, ProjectDetailAPIView)
+     ProjectListCreateAPIView, ProjectDetailAPIView, EntryDetailAPIView)
  
  
  urlpatterns = patterns(
      '',
      url(r"^admin/", include(admin.site.urls)),
      url(r"^projects/$", ProjectListCreateAPIView.as_view(),
          name="project-list"),
      url(r"^projects/(?P<pk>[0-9]+)/$", ProjectDetailAPIView.as_view(),
          name="project-detail"),
+     url(r"^entries/(?P<pk>[0-9]+)/$", EntryDetailAPIView.as_view(),
+         name="entry-detail"),
  )
  
Add url mapping for EntryDetailAPIView
## Code Before:

from django.conf.urls import patterns, include, url
from django.contrib import admin

from trex.views.project import (
    ProjectListCreateAPIView, ProjectDetailAPIView)


urlpatterns = patterns(
    '',
    url(r"^admin/", include(admin.site.urls)),
    url(r"^projects/$", ProjectListCreateAPIView.as_view(),
        name="project-list"),
    url(r"^projects/(?P<pk>[0-9]+)/$", ProjectDetailAPIView.as_view(),
        name="project-detail"),
)

## Instruction:
Add url mapping for EntryDetailAPIView
## Code After:

from django.conf.urls import patterns, include, url
from django.contrib import admin

from trex.views.project import (
    ProjectListCreateAPIView, ProjectDetailAPIView, EntryDetailAPIView)


urlpatterns = patterns(
    '',
    url(r"^admin/", include(admin.site.urls)),
    url(r"^projects/$", ProjectListCreateAPIView.as_view(),
        name="project-list"),
    url(r"^projects/(?P<pk>[0-9]+)/$", ProjectDetailAPIView.as_view(),
        name="project-detail"),
    url(r"^entries/(?P<pk>[0-9]+)/$", EntryDetailAPIView.as_view(),
        name="entry-detail"),
)
