urls.py 910 B

1234567891011121314151617181920212223
  1. from django.urls import include, path, re_path
  2. from django.contrib import admin
  3. from wagtail.documents import urls as wagtaildocs_urls
  4. from coderedcms import admin_urls as coderedadmin_urls
  5. from coderedcms import search_urls as coderedsearch_urls
  6. from coderedcms import urls as codered_urls
  7. urlpatterns = [
  8. # Admin
  9. path("django-admin/", admin.site.urls),
  10. path("admin/", include(coderedadmin_urls)),
  11. # Documents
  12. path("docs/", include(wagtaildocs_urls)),
  13. # Search
  14. path("search/", include(coderedsearch_urls)),
  15. # For anything not caught by a more specific rule above, hand over to
  16. # the page serving mechanism. This should be the last pattern in
  17. # the list:
  18. re_path(r"", include(codered_urls)),
  19. # Alternatively, if you want CMS pages to be served from a subpath
  20. # of your site, rather than the site root:
  21. # re_path(r'^pages/', include(codered_urls)),
  22. ]