from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required, permission_required
from userProfile import views

urlpatterns = patterns('',
    url(r'^$', views.Story.as_view(), name="story"),
    url(r'^edit/$', login_required(views.EditStory.as_view()), name="edit"),
    url(r'^edit/save/$', login_required(views.Update.as_view()), name="saveEdit"),
    url(r'^edit/image/$', login_required(views.ImageUpload.as_view()), name="uploadImage"),
    url(r'^view/$', login_required(views.Story.as_view()), name="mystory"),
)
e10a39c87aa4b6c51f1f53bf4714b018ceb48bdd
<mask token>

<mask token>
urlpatterns = patterns('', url('^$', views.Story.as_view(), name='story'),
    url('^edit/$', login_required(views.EditStory.as_view()), name='edit'),
    url('^edit/save/$', login_required(views.Update.as_view()), name=
    'saveEdit'), url('^edit/image/$', login_required(views.ImageUpload.
    as_view()), name='uploadImage'), url('^view/$', login_required(views.
    Story.as_view()), name='mystory'))

from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required, permission_required
from userProfile import views
urlpatterns = patterns('', url('^$', views.Story.as_view(), name='story'),
    url('^edit/$', login_required(views.EditStory.as_view()), name='edit'),
    url('^edit/save/$', login_required(views.Update.as_view()), name=
    'saveEdit'), url('^edit/image/$', login_required(views.ImageUpload.
    as_view()), name='uploadImage'), url('^view/$', login_required(views.
    Story.as_view()), name='mystory'))

from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required, permission_required
from userProfile import views

urlpatterns = patterns('',
    url(r'^$', views.Story.as_view(), name="story"),
    url(r'^edit/$', login_required(views.EditStory.as_view()), name="edit"),
    url(r'^edit/save/$', login_required(views.Update.as_view()), name="saveEdit"),
    url(r'^edit/image/$', login_required(views.ImageUpload.as_view()), name="uploadImage"),
    url(r'^view/$', login_required(views.Story.as_view()), name="mystory"),
)