from django.conf.urls import patterns, url

from .views import upload_photo, PhotoUploadSuccess

urlpatterns = patterns('',
    url(r'^photo/upload/(?P<popit_person_id>\d+)$',
        upload_photo,
        name="photo-upload"),
    url(r'^photo/upload/success/(?P<popit_person_id>\d+)$',
        PhotoUploadSuccess.as_view(),
        name="photo-upload-success"),
)

from django.conf.urls import patterns, url

from .views import upload_photo, PhotoUploadSuccess

urlpatterns = patterns('',
    url(r'^photo/upload/(?P<popit_person_id>\d+)$',
        upload_photo,
        name="photo-upload"),
    url(r'^photo/upload/(?P<popit_person_id>\d+)/success$',
        PhotoUploadSuccess.as_view(),
        name="photo-upload-success"),
)

Rearrange the photo upload success URL for consistency
Rearrange the photo upload success URL for consistency

  from django.conf.urls import patterns, url
  
  from .views import upload_photo, PhotoUploadSuccess
  
  urlpatterns = patterns('',
      url(r'^photo/upload/(?P<popit_person_id>\d+)$',
          upload_photo,
          name="photo-upload"),
-     url(r'^photo/upload/success/(?P<popit_person_id>\d+)$',
+     url(r'^photo/upload/(?P<popit_person_id>\d+)/success$',
          PhotoUploadSuccess.as_view(),
          name="photo-upload-success"),
  )
  
Rearrange the photo upload success URL for consistency
## Code Before:
from django.conf.urls import patterns, url

from .views import upload_photo, PhotoUploadSuccess

urlpatterns = patterns('',
    url(r'^photo/upload/(?P<popit_person_id>\d+)$',
        upload_photo,
        name="photo-upload"),
    url(r'^photo/upload/success/(?P<popit_person_id>\d+)$',
        PhotoUploadSuccess.as_view(),
        name="photo-upload-success"),
)

## Instruction:
Rearrange the photo upload success URL for consistency
## Code After:
from django.conf.urls import patterns, url

from .views import upload_photo, PhotoUploadSuccess

urlpatterns = patterns('',
    url(r'^photo/upload/(?P<popit_person_id>\d+)$',
        upload_photo,
        name="photo-upload"),
    url(r'^photo/upload/(?P<popit_person_id>\d+)/success$',
        PhotoUploadSuccess.as_view(),
        name="photo-upload-success"),
)
