Tuesday, February 6, 2024

Re: Get experience letter and job opportunities

What's your django project about?

On Tue, Feb 6, 2024 at 8:03 AM machine learning <watsonsam977@gmail.com> wrote:
anyone here to help me in our django project and in return we will give you access to software that will apply 100s of job for you and also hand on work experience.

--
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/CAKKYCB4FFeSCpDQEoYDDwO2Yz%2B93F7DL_LhcgBxiPe4Lzd0scQ%40mail.gmail.com.

--
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/CABFHQYy29uyG7uyNcr9_Za5yUpWRCaG0KdtARcJcwKGRd8SDfg%40mail.gmail.com.

Re: Get experience letter and job opportunities

interested

On Tue, 6 Feb 2024 at 15:03, machine learning <watsonsam977@gmail.com> wrote:
anyone here to help me in our django project and in return we will give you access to software that will apply 100s of job for you and also hand on work experience.

--
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/CAKKYCB4FFeSCpDQEoYDDwO2Yz%2B93F7DL_LhcgBxiPe4Lzd0scQ%40mail.gmail.com.

--
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/CACgi0De9Z%2ByvLGffy3t3J6UAz%3DrAHzgapiz%3DxpJhKz8CUH8O7w%40mail.gmail.com.

Re: Get experience letter and job opportunities


I am interested in the position. My mailing address is kethanaboinasrinu77@gmail.com and my phone number is 8919898388.


On Tue, Feb 6, 2024, 1:33 PM machine learning <watsonsam977@gmail.com> wrote:
anyone here to help me in our django project and in return we will give you access to software that will apply 100s of job for you and also hand on work experience.

--
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/CAKKYCB4FFeSCpDQEoYDDwO2Yz%2B93F7DL_LhcgBxiPe4Lzd0scQ%40mail.gmail.com.

--
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/CAHD3yQyUizX0MFUjEVotCOu01ajRhYE2K5EcL_pXKquX%3DzY%3DxQ%40mail.gmail.com.

Get experience letter and job opportunities

anyone here to help me in our django project and in return we will give you access to software that will apply 100s of job for you and also hand on work experience.

--
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/CAKKYCB4FFeSCpDQEoYDDwO2Yz%2B93F7DL_LhcgBxiPe4Lzd0scQ%40mail.gmail.com.

Monday, February 5, 2024

sending a message on next page refresh or login

I'm using the messaging system to notify users of actions in synchronous session, but I also have some long runnning background tasks for certain users.

How do insert a message into the django message framework for a user without having a request available? Is that possible at all?






--
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/d20b05a7-17b0-4ead-8898-b262ea935de7n%40googlegroups.com.

Saturday, February 3, 2024

Re: Django Flutterwave Payment issues

Hi 

If you are still having the challenge, we could schedule a call via meets and review your code .
Sounds cool ? 

Regards
AJAYI Sunday 
(+234) 806 771 5394



On Sat, Feb 3, 2024 at 10:14 PM Space1 Technology <space1empire@gmail.com> wrote:
I have issues trying to settup an api endpoint in my Django DRF server using Flutterwave by calling their Api in my view function. When I wrote my code and tested it with Postman client I got payment failed error. I believe I set everything well but I don't know why am getting the error. This is my code snippet for the test mode implementation, I need quick help:

from rest_framework.response import Response from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.decorators import api_view import logging import requests logger = logging.getLogger(__name__)

 @api_view(['POST']) @csrf_exempt def wallet_top_up_view(request, *args, **kwargs): try: # Required variables amount = float(request.data.get('amount', 600.0)) ko_test_email = 'space1empire@gmail.com' ko_test_name = 'Kaka Olawale' # Required API variables/parameters api_url = 'https://api.flutterwave.com/v3/charges?type=card' qms_redirect_url = 'http://localhost:8000/api/payment/success/' qms_ref = 'Welcome to Quickmed Platform, kindly proceed with payment' secret_key = 'FLWSECK_TEST-869279d145197389f77808be9187e4a3-X' # Replace with your actual secret key card_number = '5531886652142950' cvv = '564' expiry_month = '09' expiry_year = '32' headers = { 'Authorization': f'Bearer {secret_key}', 'Content-Type': 'application/json', } payload = { "tx_ref": qms_ref, "amount": amount, "currency": "NGN", "redirect_url": qms_redirect_url, "order_id": "your_order_id", "order_ref": "your_order_reference", "payment_type": "card", "customer": { "email": ko_test_email, "name": ko_test_name, }, "card": { "number": card_number, "cvv": cvv, "expiry_month": expiry_month, "expiry_year": expiry_year, } } # Make the POST request and store in the response variable response = requests.post(api_url, headers=headers, json=payload) # Check if the response was successful if response.ok: payment_link = response.json().get("data").get("link") return Response({"payment_link": payment_link}, status=201) else: return Response({"error": "Payment failed"}, status=response.status_code) except Exception as e: logger.exception("An error occurred in WalletTopUpView") return JsonResponse({"error": str(e)}, status=500)

--
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/CAPSG2femeBUh7JgPcQLvVpJHgzJnVms2E1oB4-DaAbt1U_G-hw%40mail.gmail.com.

--
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/CAKYSAw0_EOM5OyF%3DQPWBYYrKBOS192LrBmmqLN53y5t5Rxpikw%40mail.gmail.com.

Re: Django Flutterwave Payment issues

I have issues trying to settup an api endpoint in my Django DRF server using Flutterwave by calling their Api in my view function. When I wrote my code and tested it with Postman client I got payment failed error. I believe I set everything well but I don't know why am getting the error. This is my code snippet for the test mode implementation, I need quick help:

from rest_framework.response import Response from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.decorators import api_view import logging import requests logger = logging.getLogger(__name__)

 @api_view(['POST']) @csrf_exempt def wallet_top_up_view(request, *args, **kwargs): try: # Required variables amount = float(request.data.get('amount', 600.0)) ko_test_email = 'space1empire@gmail.com' ko_test_name = 'Kaka Olawale' # Required API variables/parameters api_url = 'https://api.flutterwave.com/v3/charges?type=card' qms_redirect_url = 'http://localhost:8000/api/payment/success/' qms_ref = 'Welcome to Quickmed Platform, kindly proceed with payment' secret_key = 'FLWSECK_TEST-869279d145197389f77808be9187e4a3-X' # Replace with your actual secret key card_number = '5531886652142950' cvv = '564' expiry_month = '09' expiry_year = '32' headers = { 'Authorization': f'Bearer {secret_key}', 'Content-Type': 'application/json', } payload = { "tx_ref": qms_ref, "amount": amount, "currency": "NGN", "redirect_url": qms_redirect_url, "order_id": "your_order_id", "order_ref": "your_order_reference", "payment_type": "card", "customer": { "email": ko_test_email, "name": ko_test_name, }, "card": { "number": card_number, "cvv": cvv, "expiry_month": expiry_month, "expiry_year": expiry_year, } } # Make the POST request and store in the response variable response = requests.post(api_url, headers=headers, json=payload) # Check if the response was successful if response.ok: payment_link = response.json().get("data").get("link") return Response({"payment_link": payment_link}, status=201) else: return Response({"error": "Payment failed"}, status=response.status_code) except Exception as e: logger.exception("An error occurred in WalletTopUpView") return JsonResponse({"error": str(e)}, status=500)

--
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/CAPSG2femeBUh7JgPcQLvVpJHgzJnVms2E1oB4-DaAbt1U_G-hw%40mail.gmail.com.