1
0

urls.py 892 B

12345678910111213141516171819202122232425
  1. from django.contrib import admin
  2. from django.urls import path, re_path, include
  3. from django.views.generic.base import RedirectView
  4. from core import views as core
  5. urlpatterns = [
  6. path('trumbowyg/', include('trumbowyg.urls')),
  7. path('admin/', admin.site.urls),
  8. path('account/login', core.p_login, name='core_login'),
  9. path('account/logout', core.p_logout, name='core_logout'),
  10. path('account/registration', core.p_registration , name='core_registration'),
  11. path('favicon.ico', RedirectView.as_view(url = '/static/favicon.ico')),
  12. path('parc/', include('parc_info.urls')),
  13. path('taches/', include('gest_taches.urls')),
  14. path('user/', include('gest_user.urls')),
  15. path('' , core.index, name='core_index'),
  16. # url generique
  17. re_path(r'page/(?P<p_url>[a-zA-Z0-9_,-/]+)', core.page, name='core_page'),
  18. # last chance
  19. re_path(r'(?P<p_url>[a-zA-Z0-9_.,-]+)', core.page, name='core_page'),
  20. ]