project/urls.py
changeset 94 87e77aa18610
parent 93 e86755df35da
child 96 178b89a3ca4f
equal deleted inserted replaced
93:e86755df35da 94:87e77aa18610
    23     (r'^comments/', include('django.contrib.comments.urls')),
    23     (r'^comments/', include('django.contrib.comments.urls')),
    24     (r'^admin/(.*)', admin.site.root),
    24     (r'^admin/(.*)', admin.site.root),
    25 )
    25 )
    26 
    26 
    27 # Talks, etc.
    27 # Talks, etc.
    28 urlpatterns += patterns('project.kiwipycon.talk.views',
    28 urlpatterns += patterns('project.scipycon.talk.views',
    29     url(r'^talks/$',  'list_talks', name='list_talks'),
    29     url(r'^talks/$', 'list_talks', name='list_talks'),
    30     url(r'^talks/talk/(?P<id>\d+)/$',  'talk', name='talk_detail'),
    30     url(r'^talks/talk/(?P<id>\d+)/$', 'talk', name='talk_detail'),
    31     url(r'^submit-talk/$',  'submit_talk', name='kiwipycon_submit_talk'),
    31     url(r'^submit-talk/$', 'submit_talk', name='scipycon_submit_talk'),
    32     url(r'^edit-talk/(?P<id>\d+)/$',  'edit_talk', name='kiwipycon_edit_talk'),
    32     url(r'^edit-talk/(?P<id>\d+)/$', 'edit_talk', name='scipycon_edit_talk'),
    33     url(r'^talks-cfp/list-talks/(?P<id>\d+)/$',  'list_talks',
    33     url(r'^talks-cfp/list-talks/(?P<id>\d+)/$', 'list_talks',
    34         name='kiwipycon_list_talk'),
    34         name='scipycon_list_talk'),
    35     )
    35     )
    36 
    36 
    37 # Registration
    37 # Registration
    38 urlpatterns += patterns('project.kiwipycon.registration.views',
    38 urlpatterns += patterns('project.scipycon.registration.views',
    39     url(r'^invoice/$',  'invoice', name='kiwipycon_invoice'),
    39     url(r'^registrations/$', 'registrations', name='scipycon_registrations'),
    40     url(r'^pdf_invoice/$',  'pdf_invoice', name='kiwipycon_pdf_invoice'),
    40     url(r'^submit-registration/$', 'submit_registration', name='scipycon_submit_registration'),
    41     url(r'^registrations/$',  'registrations', name='kiwipycon_registrations'),
    41     url(r'^edit-registration/(?P<id>\d+)/$', 'edit_registration',
    42     url(r'^submit-registration/$',  'submit_registration', name='kiwipycon_submit_registration'),
    42         name='scipycon_edit_registration'),
    43     url(r'^edit-registration/(?P<id>\d+)/$',  'edit_registration',
       
    44         name='kiwipycon_edit_registration'),
       
    45     url(r'^download_csv/', 'download_csv', name="download_csv"),
    43     url(r'^download_csv/', 'download_csv', name="download_csv"),
    46     )
    44     )
    47 
    45 
    48 
    46 
    49 # Authentication and Profile
    47 # Authentication and Profile
    50 urlpatterns += patterns('project.kiwipycon.user.views',
    48 urlpatterns += patterns('project.scipycon.user.views',
    51     url(r'^login/$',  'login', name='kiwipycon_login'),
    49     url(r'^login/$', 'login', name='scipycon_login'),
    52     url(r'^logout/$',  'logout', name='kiwipycon_logout'),
    50     url(r'^logout/$', 'logout', name='scipycon_logout'),
    53     url(r'^account/$',  'account', name='kiwipycon_account'),
    51     url(r'^account/$', 'account', name='scipycon_account'),
    54     url(r'^password/$', 'password', name='kiwipycon_password'), # change pwd
    52     url(r'^password/$', 'password', name='scipycon_password'), # change pwd
    55     url(r'^username/$', 'username', name='kiwipycon_username'), # change uname
    53     url(r'^username/$', 'username', name='scipycon_username'), # change uname
    56     url(r'^edit-profile/$', 'edit_profile', name='kiwipycon_edit_profile'),
    54     url(r'^edit-profile/$', 'edit_profile', name='scipycon_edit_profile'),
    57     url(r'^get-usernames/$', 'get_usernames', name='kiwipycon_get_usernames'),
    55     url(r'^get-usernames/$', 'get_usernames', name='scipycon_get_usernames'),
    58     )
    56     )
    59 
    57 
    60 # Proceedings
    58 # Proceedings
    61 urlpatterns += patterns('project.kiwipycon.proceedings.views',
    59 urlpatterns += patterns('project.scipycon.proceedings.views',
    62     url(r'^proceedings/submit/$', 'submit',
    60     url(r'^proceedings/submit/$', 'submit',
    63         name='kiwipycon_submit_proceedings'),
    61         name='scipycon_submit_proceedings'),
    64     url(r'^proceedings/submit/(?P<id>\d+)/$', 'submit', 
    62     url(r'^proceedings/submit/(?P<id>\d+)/$', 'submit', 
    65         name='kiwipycon_submit_proceedings'),
    63         name='scipycon_submit_proceedings'),
    66     url(r'^proceedings/show_paper/(?P<id>\d+)/$', 'show_paper', 
    64     url(r'^proceedings/show_paper/(?P<id>\d+)/$', 'show_paper', 
    67         name='kiwipycon_show_paper'),
    65         name='scipycon_show_paper'),
    68     )
    66     )
    69 
    67 
    70 # About pages and all other static html pages
    68 # About pages and all other static html pages
    71 urlpatterns += patterns('',
    69 urlpatterns += patterns('',
    72     url(r'^about/accommodation/$', 
    70     url(r'^about/accommodation/$', 
    73         direct_to_template, {"template": "about/accommodation.html"},
    71         direct_to_template, {"template": "about/accommodation.html"},
    74         name='accommodation'),
    72         name='scipycon_accommodation'),
    75     url(r'^about/food/$',
    73     url(r'^about/food/$',
    76         direct_to_template, {"template": "about/food.html"}, name='food'),
    74         direct_to_template, {"template": "about/food.html"}, name='scipycon_food'),
    77     url(r'^about/venue/$',
    75     url(r'^about/venue/$',
    78         direct_to_template, {"template": "about/venue.html"}, name='venue'),
    76         direct_to_template, {"template": "about/venue.html"}, name='scipycon_venue'),
    79     url(r'^about/reaching/$', 
    77     url(r'^about/reaching/$', 
    80         direct_to_template, {"template": "about/reaching.html"},
    78         direct_to_template, {"template": "about/reaching.html"},
    81         name='reaching'),
    79         name='scipycon_reaching'),
    82     url(r'^talks-cfp/$', 
    80     url(r'^talks-cfp/$', 
    83         direct_to_template, {"template": "talk/talks-cfp.html"},
    81         direct_to_template, {"template": "talk/talks-cfp.html"},
    84         name='talks-cfp'),
    82         name='scipycon_talks_cfp'),
    85     url(r'^talks-cfp/schedule/$', 
    83     url(r'^talks-cfp/schedule/$', 
    86         direct_to_template, {"template": "talk/schedule.html"},
    84         direct_to_template, {"template": "talk/schedule.html"},
    87         name='schedule'),
    85         name='scipycon_schedule'),
    88     url(r'^talks-cfp/tutorial/$', 
    86     url(r'^talks-cfp/tutorial/$', 
    89         direct_to_template, {"template": "talk/tutorial-schedule.html"},
    87         direct_to_template, {"template": "talk/tutorial-schedule.html"},
    90         name='tutorial-schedule'),
    88         name='scipycon_tutorial_schedule'),
    91     url(r'^talks-cfp/sprint/$', 
    89     url(r'^talks-cfp/sprint/$', 
    92         direct_to_template, {"template": "talk/sprint-schedule.html"},
    90         direct_to_template, {"template": "talk/sprint-schedule.html"},
    93         name='sprint-schedule'),
    91         name='scipycon_sprint_schedule'),
    94     url(r'^talks-cfp/speakers/$', 
    92     url(r'^talks-cfp/speakers/$', 
    95         direct_to_template, {"template": "talk/speakers.html"},
    93         direct_to_template, {"template": "talk/speakers.html"},
    96         name='speakers'),
    94         name='scipycon_speakers'),
    97     (r'^accounts/', include('registration.urls')),
    95     (r'^accounts/', include('registration.urls')),
    98     )
    96     )
    99 
    97 
   100 # Password reset
    98 # Password reset
   101 urlpatterns += patterns('django.contrib.auth.views',
    99 urlpatterns += patterns('django.contrib.auth.views',