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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/bd87c994-77da-529b-1416-2e6d7a8d2aa5%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.