Sounds to me that what you want is a `singleton` implemented in Python . The fact that Django is involved does not seem to be very relevant?
8. jan. 2018 22:43 skrev "Kasper Laudrup" <[email protected]>: > Hi Antonis, > > On 2018-01-08 22:10, Antonis Christofides wrote: > >> Hello, >> >> When you say "call [an instance of an object]", what exactly do you mean? >> >> > Sorry, I meant an instance of a class or just an object. > > Could you tell us more about what this class/object is and why you need to >> "call" (access?) it in an unusual way? >> >> > Nothing unusual about the class or object, sorry about the confusion. > > My question is probably fairly simple and I'm really sorry if there's > something very basic that I'm missing. > > I want to create an instance of some class when the Django application I'm > creating is ready (eg. by connecting to the ready() signal or similar) and > then be able to call methods on that single instance from my models. > > Thanks a lot for the help so far. > > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ms > gid/django-users/bd87c994-77da-529b-1416-2e6d7a8d2aa5%40stacktrace.dk. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALKD1M8O8SLtfJK5cwj86x3Aad7T_45KdQAxMAYuUxSbfsEY0Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

