1
0

urls.py 878 B

123456789101112131415161718192021222324252627
  1. from django.urls import include, re_path
  2. from .views import (
  3. test,
  4. test_custom_error_message,
  5. test_custom_generator,
  6. test_id_prefix,
  7. test_model_form,
  8. test_non_required,
  9. test_per_form_format,
  10. )
  11. urlpatterns = [
  12. re_path(r"test/$", test, name="captcha-test"),
  13. re_path(r"test-modelform/$", test_model_form, name="captcha-test-model-form"),
  14. re_path(
  15. r"test2/$", test_custom_error_message, name="captcha-test-custom-error-message"
  16. ),
  17. re_path(r"test3/$", test_per_form_format, name="test_per_form_format"),
  18. re_path(r"custom-generator/$", test_custom_generator, name="test_custom_generator"),
  19. re_path(
  20. r"test-non-required/$", test_non_required, name="captcha-test-non-required"
  21. ),
  22. re_path(r"test-id-prefix/$", test_id_prefix, name="captcha-test-id-prefix"),
  23. re_path(r"", include("captcha.urls")),
  24. ]