Wednesday, May 15, 2024

View "functions" that are callables?

Hi,

I'm surprised I don't know this, but: Can a view "function" in a urlconf be a callable that is not actually a function, such as a class with a __call__ method?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/F70DCB4E-1307-42C2-AC62-CA2DC98DCD5B%40thebuild.com.

No comments:

Post a Comment