Hello, I cant get to find the create_Notification function, whenever I try run it it, it says that I this function is not defined and based on your code I dont see where you imported this from, how does it works? thanks in advance
in views.py of the student app i haven't seen you defining the create_notification ( create_notification(request.user, f"Added Student: {student.first_name} {student.last_name}"))
Great sir!
great
Hello, I cant get to find the create_Notification function, whenever I try run it it, it says that I this function is not defined and based on your code I dont see where you imported this from, how does it works? thanks in advance
define in utiles.py: from school.models import Notification
def create_notification(user, message):
Notification.objects.create(user=user, message=message)
@@Broklymaster where should it be define azin in which app
in views.py of the student app i haven't seen you defining the create_notification ( create_notification(request.user, f"Added Student: {student.first_name} {student.last_name}"))