old_contents: from django.conf.urls import patterns
  from django.contrib.auth.decorators import login_required
  
  from smarturls import surl as url
  
  import views
  
  urlpatterns = patterns(
      '',
      url(regex=r'/events/',
          view=views.ListEvents.as_view(),
          name='list_events'),
      url(regex=r'/events/create/',
          view=views.CreateEvent.as_view(),
          name='create_event'),
      url(regex=r'/events/<slug:slug>/',
          view=views.DetailEvent.as_view(),
          name='view_event'),
      url(regex=r'/events/<slug:slug>/update/',
          view=views.UpdateEvent.as_view(),
          name='update_event'),
      url(regex=r'/events/<slug:slug>/proposals/create/',
          view=views.CreateProposal.as_view(),
          name='create_event_proposal'),
      url(regex=r'/events/<slug:event_slug>/'
                r'proposals/<slug:slug>/update/',
          view=views.UpdateProposal.as_view(),
          name='update_proposal'),
      url(regex=r'/events/<slug:event_slug>/'
                r'proposals/<slug:slug>/rate/<slug:rate>/',
          view=views.RateProposal.as_view(),
          name='rate_proposal'),
  )
  
new_contents: from django.conf.urls import patterns
  
  from smarturls import surl as url
  
  import views
  
  urlpatterns = patterns(
      '',
      url(regex=r'/events/',
          view=views.ListEvents.as_view(),
          name='list_events'),
      url(regex=r'/events/create/',
          view=views.CreateEvent.as_view(),
          name='create_event'),
      url(regex=r'/events/<slug:slug>/',
          view=views.DetailEvent.as_view(),
          name='view_event'),
      url(regex=r'/events/<slug:slug>/update/',
          view=views.UpdateEvent.as_view(),
          name='update_event'),
      url(regex=r'/events/<slug:slug>/proposals/create/',
          view=views.CreateProposal.as_view(),
          name='create_event_proposal'),
      url(regex=r'/events/<slug:event_slug>/'
                r'proposals/<slug:slug>/update/',
          view=views.UpdateProposal.as_view(),
          name='update_proposal'),
      url(regex=r'/events/<slug:event_slug>/'
                r'proposals/<slug:slug>/rate/<slug:rate>/',
          view=views.RateProposal.as_view(),
          name='rate_proposal'),
  )
  
subject: Remove unecessary login_required import.