Answer the question
In order to leave comments, you need to log in
Why are they not displayed immediately when changing the code in django on the site?
Hello. I started working with Python, and immediately the following problem arose:
I edit the admin panel (blog/models.py), added the function
def notify_admin(sender, instance, created, **kwargs):
if created:
print("Yes")
signals.post_save.connect(notify_admin, sender=Post)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question