Hey man, beggars cannot be choosers! Thank you! On Thursday, December 30, 2021 at 1:28:12 AM UTC-5 Yorben Verhoest wrote:
> Hello > > 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: > [image: appconfig.png] > > 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 [email protected] 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 >> <https://www.guguweb.com/2021/01/12/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 >> <https://django-paypal.readthedocs.io/en/stable/standard/ipn.html> 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 >> <https://docs.djangoproject.com/en/2.1/ref/applications/#configuring-applications> >> and >> add a ready() >> <https://docs.djangoproject.com/en/2.1/ref/applications/#django.apps.AppConfig.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/db143e07-597c-489a-ace7-9bb5847ef69an%40googlegroups.com.

