admin_urls.py 482 B

123456789101112131415161718192021
  1. from django.urls import include, path
  2. from wagtail.admin import urls as wagtailadmin_urls
  3. from coderedcms.views import import_index, import_pages_from_csv_file
  4. urlpatterns = [
  5. path(
  6. "codered/import-export/",
  7. import_index,
  8. name="import_index",
  9. ),
  10. path(
  11. "codered/import-export/import_from_csv/",
  12. import_pages_from_csv_file,
  13. name="import_from_csv",
  14. ),
  15. path(
  16. "",
  17. include(wagtailadmin_urls),
  18. ),
  19. ]