<filename>dosirak/urls.py
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from dosirak import views

urlpatterns=patterns('',url(r'^$',views.index,name='index'),
                     #/dosirak/
                     #  /dosirak/5/

url(r'^(?P<question_id>\d+)/$', views.PhotoUploadFormHandler.as_view(), name='detail'),#namve value as called by the {%url%}template code
url(r'^upload_photo/$', views.PhotoUploadHandler.as_view(), name='upload_photo'),
url(r'^view_photo/([^/]+)?', views.ViewPhotoHandler,name='view_photo'),
    # ex: /dosirak/5/results/
url(r'^(?P<question_id>\d+)/results/$', views.results, name='results'),
url(r'^(?P<question_id>\d+)/again/$', views.again, name='again'),
    # ex: /polls/5/vote/
#url(r'^(?P<question_id>\d+)/vote/$', views.PhotoUploadFormHandler, name='vote'),
#url(r'^(?P<question_id>\d+)/s/$', views.PhotoUploadFormHandler, name='vote'),
#url(r'/view_photo/([^/]+)?', views.ViewPhotoHandler, name='view_photo'),
#url(r'^(?P<question_id>\d+)/$', views.detail, name='detail'),#namve value as called by the {%url%}template code
#url(r'^(?P<question_id>\d+)/upload-finalize/$', views.UploadFinalizeHandler.as_view(), name='reserve-finalize'),

)

<filename>dosirak/urls.py
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from dosirak import views

urlpatterns=patterns('',url(r'^$',views.index,name='index'),
                     #/dosirak/
                     #  /dosirak/5/

url(r'^(?P<question_id>\d+)/$', views.PhotoUploadFormHandler.as_view(), name='detail'),#namve value as called by the {%url%}template code
url(r'^upload_photo/$', views.PhotoUploadHandler.as_view(), name='upload_photo'),
url(r'^view_photo/([^/]+)?', views.ViewPhotoHandler,name='view_photo'),
    # ex: /dosirak/5/results/
url(r'^(?P<question_id>\d+)/results/$', views.results, name='results'),
url(r'^(?P<question_id>\d+)/again/$', views.again, name='again'),
    # ex: /polls/5/vote/
#url(r'^(?P<question_id>\d+)/vote/$', views.PhotoUploadFormHandler, name='vote'),
#url(r'^(?P<question_id>\d+)/s/$', views.PhotoUploadFormHandler, name='vote'),
#url(r'/view_photo/([^/]+)?', views.ViewPhotoHandler, name='view_photo'),
#url(r'^(?P<question_id>\d+)/$', views.detail, name='detail'),#namve value as called by the {%url%}template code
#url(r'^(?P<question_id>\d+)/upload-finalize/$', views.UploadFinalizeHandler.as_view(), name='reserve-finalize'),

)

# -*- coding: utf-8 -*- #/dosirak/ #  /dosirak/5/ #namve value as called by the {%url%}template code # ex: /dosirak/5/results/ # ex: /polls/5/vote/ #url(r'^(?P<question_id>\d+)/vote/$', views.PhotoUploadFormHandler, name='vote'), #url(r'^(?P<question_id>\d+)/s/$', views.PhotoUploadFormHandler, name='vote'), #url(r'/view_photo/([^/]+)?', views.ViewPhotoHandler, name='view_photo'), #url(r'^(?P<question_id>\d+)/$', views.detail, name='detail'),#namve value as called by the {%url%}template code #url(r'^(?P<question_id>\d+)/upload-finalize/$', views.UploadFinalizeHandler.as_view(), name='reserve-finalize'),