I'm a Django Noobie and maybe I'm completely wrong about this but in my app named "core", I have a file called apps.py where I register my signals.
I just followed a tutorial as well so I can't yet explain what it does but if I had to guess is just to register the app with my signals.
Just when reading your question it reminded me of this:
If this is wrong info I'll delete this but maybe this helps :)
Regards
On Wednesday, 29 December 2021 at 21:22:46 UTC+1 lone...@gmail.com wrote:
Hello all,I decided to try and accept payments on my web application. I have chosen the django-paypal application to help me out with this task. I found a decent walkthrough at: how-to-accept-paypal-payments-on-your-django-application. I was able to follow everything until the last step of: "6. Setup a listener to detect successful Paypal payments" I have never really setup any listeners before so I did not know what to do. I decided to read the Django-PayPal ReadTheDocs and I found a file that looked structurally similar to what I found on the original walkthrough I had found. It looks like I needed to make a hooks.py file in my project directory. I have accomplished that, and the ReadTheDocs says: "Remember to ensure that import the hooks file is imported i.e. that you are connecting the signals when your project initializes. The standard way to do this is to create an AppConfig class and add a ready() method, in which you can register your signal handlers or import a module that does this." This is where I am getting lost. I am not quite sure what to do. Does anyone have a better walkthrough or know what I need to do?Thank you.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e0fc31ee-dc9d-432b-88cb-ec1ff2dd636fn%40googlegroups.com.
No comments:
Post a Comment