Revert urls prefixing

This commit is contained in:
Evarin 2018-02-20 17:21:26 +01:00
parent 6d6c995563
commit 347497602c

View file

@ -27,73 +27,73 @@ admin.autodiscover()
urlpatterns = [ urlpatterns = [
# Page d'accueil # Page d'accueil
url(r'^gestion/$', gestioncof_views.home, name='home'), url(r'^$', gestioncof_views.home, name='home'),
# Le BdA # Le BdA
url(r'^gestion/bda/', include('bda.urls')), url(r'^bda/', include('bda.urls')),
# Les exports # Les exports
url(r'^gestion/export/', include(export_patterns)), url(r'^export/', include(export_patterns)),
# Les petits cours # Les petits cours
url(r'^gestion/petitcours/', include(petitcours_patterns)), url(r'^petitcours/', include(petitcours_patterns)),
# Les sondages # Les sondages
url(r'^gestion/survey/', include(surveys_patterns)), url(r'^survey/', include(surveys_patterns)),
# Evenements # Evenements
url(r'^gestion/event/', include(events_patterns)), url(r'^event/', include(events_patterns)),
# Calendrier # Calendrier
url(r'^gestion/calendar/', include(calendar_patterns)), url(r'^calendar/', include(calendar_patterns)),
# Clubs # Clubs
url(r'^gestion/clubs/', include(clubs_patterns)), url(r'^clubs/', include(clubs_patterns)),
# Authentification # Authentification
url(r'^gestion/cof/denied$', TemplateView.as_view(template_name='cof-denied.html'), url(r'^cof/denied$', TemplateView.as_view(template_name='cof-denied.html'),
name="cof-denied"), name="cof-denied"),
url(r'^gestion/cas/login$', django_cas_views.login, name="cas_login_view"), url(r'^cas/login$', django_cas_views.login, name="cas_login_view"),
url(r'^gestion/cas/logout$', django_cas_views.logout), url(r'^cas/logout$', django_cas_views.logout),
url(r'^gestion/outsider/login$', gestioncof_views.login_ext, url(r'^outsider/login$', gestioncof_views.login_ext,
name="ext_login_view"), name="ext_login_view"),
url(r'^gestion/outsider/logout$', django_views.logout, {'next_page': 'home'}), url(r'^outsider/logout$', django_views.logout, {'next_page': 'home'}),
url(r'^gestion/login$', gestioncof_views.login, name="cof-login"), url(r'^login$', gestioncof_views.login, name="cof-login"),
url(r'^gestion/logout$', gestioncof_views.logout, name="cof-logout"), url(r'^logout$', gestioncof_views.logout, name="cof-logout"),
# Infos persos # Infos persos
url(r'^gestion/profile$', gestioncof_views.profile, url(r'^profile$', gestioncof_views.profile,
name='profile'), name='profile'),
url(r'^gestion/outsider/password-change$', django_views.password_change, url(r'^outsider/password-change$', django_views.password_change,
name='password_change'), name='password_change'),
url(r'^gestion/outsider/password-change-done$', url(r'^outsider/password-change-done$',
django_views.password_change_done, django_views.password_change_done,
name='password_change_done'), name='password_change_done'),
# Inscription d'un nouveau membre # Inscription d'un nouveau membre
url(r'^gestion/registration$', gestioncof_views.registration, url(r'^registration$', gestioncof_views.registration,
name='registration'), name='registration'),
url(r'^gestion/registration/clipper/(?P<login_clipper>[\w-]+)/' url(r'^registration/clipper/(?P<login_clipper>[\w-]+)/'
r'(?P<fullname>.*)$', r'(?P<fullname>.*)$',
gestioncof_views.registration_form2, name="clipper-registration"), gestioncof_views.registration_form2, name="clipper-registration"),
url(r'^gestion/registration/user/(?P<username>.+)$', url(r'^registration/user/(?P<username>.+)$',
gestioncof_views.registration_form2, name="user-registration"), gestioncof_views.registration_form2, name="user-registration"),
url(r'^gestion/registration/empty$', gestioncof_views.registration_form2, url(r'^registration/empty$', gestioncof_views.registration_form2,
name="empty-registration"), name="empty-registration"),
# Autocompletion # Autocompletion
url(r'^gestion/autocomplete/registration$', autocomplete), url(r'^autocomplete/registration$', autocomplete),
url(r'^gestion/user/autocomplete$', gestioncof_views.user_autocomplete, url(r'^user/autocomplete$', gestioncof_views.user_autocomplete,
name='cof-user-autocomplete'), name='cof-user-autocomplete'),
# Interface admin # Interface admin
url(r'^gestion/admin/logout/', gestioncof_views.logout), url(r'^admin/logout/', gestioncof_views.logout),
url(r'^gestion/admin/doc/', include('django.contrib.admindocs.urls')), url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^gestion/admin/(?P<app_label>[\d\w]+)/(?P<model_name>[\d\w]+)/csv/', url(r'^admin/(?P<app_label>[\d\w]+)/(?P<model_name>[\d\w]+)/csv/',
csv_views.admin_list_export, csv_views.admin_list_export,
{'fields': ['username', ]}), {'fields': ['username', ]}),
url(r'^gestion/admin/', include(admin.site.urls)), url(r'^admin/', include(admin.site.urls)),
# Liens utiles du COF et du BdA # Liens utiles du COF et du BdA
url(r'^gestion/utile_cof$', gestioncof_views.utile_cof, url(r'^utile_cof$', gestioncof_views.utile_cof,
name='utile_cof'), name='utile_cof'),
url(r'^gestion/utile_bda$', gestioncof_views.utile_bda, url(r'^utile_bda$', gestioncof_views.utile_bda,
name='utile_bda'), name='utile_bda'),
url(r'^gestion/utile_bda/bda_diff$', gestioncof_views.liste_bdadiff), url(r'^utile_bda/bda_diff$', gestioncof_views.liste_bdadiff),
url(r'^gestion/utile_cof/diff_cof$', gestioncof_views.liste_diffcof), url(r'^utile_cof/diff_cof$', gestioncof_views.liste_diffcof),
url(r'^gestion/utile_bda/bda_revente$', gestioncof_views.liste_bdarevente), url(r'^utile_bda/bda_revente$', gestioncof_views.liste_bdarevente),
url(r'^gestion/k-fet/', include('kfet.urls')), url(r'^k-fet/', include('kfet.urls')),
url(r'^gestion/cms/', include(wagtailadmin_urls)), url(r'^cms/', include(wagtailadmin_urls)),
url(r'^gestion/documents/', include(wagtaildocs_urls)), url(r'^documents/', include(wagtaildocs_urls)),
# djconfig # djconfig
url(r"^gestion/config", gestioncof_views.ConfigUpdate.as_view()), url(r"^config", gestioncof_views.ConfigUpdate.as_view()),
] ]
if 'debug_toolbar' in settings.INSTALLED_APPS: if 'debug_toolbar' in settings.INSTALLED_APPS: