diff options
author | adityacp | 2020-07-27 17:12:20 +0530 |
---|---|---|
committer | adityacp | 2020-07-27 17:12:20 +0530 |
commit | e119c6f2fa675a2284cbac17ba0bb5ae4f5b7f87 (patch) | |
tree | 8db30fe9c69a052d1eef6ba9bfa01fa08ef942d6 /workshop_app/urls.py | |
parent | fb1a97935d5c4f675987acf02e1e85dac3e7e72c (diff) | |
download | workshop_booking-e119c6f2fa675a2284cbac17ba0bb5ae4f5b7f87.tar.gz workshop_booking-e119c6f2fa675a2284cbac17ba0bb5ae4f5b7f87.tar.bz2 workshop_booking-e119c6f2fa675a2284cbac17ba0bb5ae4f5b7f87.zip |
Change workshop_app files
- Add app_name in workshop_app urls
- Change redirect reverse url accoriding to app name
- Change urls in email messages
Diffstat (limited to 'workshop_app/urls.py')
-rw-r--r-- | workshop_app/urls.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/workshop_app/urls.py b/workshop_app/urls.py index 9ace4ab..b83e5cc 100644 --- a/workshop_app/urls.py +++ b/workshop_app/urls.py @@ -16,15 +16,17 @@ Including another URLconf from django.conf.urls import url from workshop_app import views +app_name = "workshop_app" + urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^register/$', views.user_register, name="register"), url(r'^activate_user/(?P<key>.+)$', views.activate_user), url(r'^activate_user/$', views.activate_user), - url(r'^login/$', views.user_login), - url(r'^logout/$', views.user_logout), + url(r'^login/$', views.user_login, name="login"), + url(r'^logout/$', views.user_logout, name="logout"), url(r'^edit_profile/$', views.edit_profile), - url(r'^workshop_status$', views.workshop_status_coordinator, + url(r'^status$', views.workshop_status_coordinator, name='workshop_status_coordinator'), url(r'^dashboard$', views.workshop_status_instructor, name='workshop_status_instructor'), @@ -32,19 +34,19 @@ urlpatterns = [ name='accept_workshop'), url(r'^change_workshop_date/(?P<workshop_id>\d+)$', views.change_workshop_date, name='change_workshop_date'), - url(r'^workshops/(?P<workshop_id>\d+)$', views.workshop_details, + url(r'^details/(?P<workshop_id>\d+)$', views.workshop_details, name='workshop_details'), - url(r'^workshop_type_details/(?P<workshop_type_id>\d+)$', + url(r'^type_details/(?P<workshop_type_id>\d+)$', views.workshop_type_details, name='workshop_type_details'), - url(r'^workshop_type_tnc/(?P<workshop_type_id>\d+)$', + url(r'^type_tnc/(?P<workshop_type_id>\d+)$', views.workshop_type_tnc, name='workshop_type_tnc'), - url(r'^propose_workshop/$', views.propose_workshop, + url(r'^propose/$', views.propose_workshop, name='propose_workshop'), url(r'^add_workshop_type$', views.add_workshop_type, name='add_workshop_type'), url(r'^delete_attachment_file/(?P<file_id>\d+)$', views.delete_attachment_file, name='delete_attachment_file'), - url(r'^workshop_types/$', views.workshop_type_list, + url(r'^types/$', views.workshop_type_list, name='workshop_type_list'), url(r'^view_profile/$', views.view_own_profile, name='view_own_profile'), |