Hi Soumen,

On 17/02/2020 14.59, Soumen Khatua wrote:
Yeah, I'm trying to do it in your way but somehow it's not working in my script.


Which way?

I didn't give you any way to do it, I gave you three ideas and I would be very interested to hear what would work out best.

I definitely find the "class member/singleton" kind of way a dirty hack that I would personally avoid (views shouldn't have any state in the first place).

But it would be very interesting to hear how you've approached the service and custom model ideas.

Would you care to share the code where you've tried that approach?

Kind regards,

Kasper Laudrup

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7b0369ad-4ac5-675d-bcad-d2aea4128099%40stacktrace.dk.

Reply via email to