Re: Django Flutterwave Payment issues

2024-02-03 Thread Sunday Ajayi
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
*sunnexaj...@gmail.com *



On Sat, Feb 3, 2024 at 10:14 PM Space1 Technology 
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 = '
> space1emp...@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+unsubscr...@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+unsubscr...@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 tenants schema with database cluster

2024-02-03 Thread Nagaraja
Can you tell me.. what's the issue you are facing with database routing?

On Tue, 30 Jan, 2024, 6:31 am Husbas,  wrote:

> We are running a Saas with django-tenants and AWS aurora.
> However, for AWS aurora and django, we need to implement a DB Router to
> read from read replica and write to master database. This doesn't seem to
> be possible with current Router of django-tenants schema.
>
> Is there a way to handle this?
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/27effb38-eb2b-486e-9b5e-fbb75ae14157n%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN1LePgm%3DY%2BJ-vdwar0kHNOBpU02bsznFUJR0-G812tdenpNnw%40mail.gmail.com.


[no subject]

2024-02-03 Thread Kevin Tuo
Ô

Envoyé à partir de Outlook pour Android

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/VI1PR07MB5117C7A22346604955B43A5AFA412%40VI1PR07MB5117.eurprd07.prod.outlook.com.


Re: Django Flutterwave Payment issues

2024-02-03 Thread Space1 Technology
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 = '
space1emp...@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+unsubscr...@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.


Re: Book

2024-02-03 Thread Kevin Tuo
Good idea, Thanks!

Envoyé à partir de Outlook pour Android

From: django-users@googlegroups.com  on behalf 
of Obam Olohu 
Sent: Saturday, February 3, 2024 4:15:02 PM
To: django-users@googlegroups.com 
Subject: Re: Book

why don't you learn directly from a tutor?


On Thu, Feb 1, 2024 at 3:14 AM Kevin Tuo 
mailto:tuokev...@gmail.com>> wrote:
Hello, Please can I get a book for building a portfolio website with django?


Envoyé à partir de Outlook pour Android

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/AS4PR09MB55764DA8881C3AB572B7468AFA7C2%40AS4PR09MB5576.eurprd09.prod.outlook.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMc8uwNeDWk8QRicjFHg_Ph6%3DrN7ARRgGxAQBzxVM7ASFupL9g%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/VI1PR07MB511726EE0F530FF06C424722FA412%40VI1PR07MB5117.eurprd07.prod.outlook.com.


Re: Book

2024-02-03 Thread Kevin Tuo
Thanks for advice sir; I will do that!
Nice weekend!

Envoyé à partir de Outlook pour Android

From: django-users@googlegroups.com  on behalf 
of BUHNYUY RONALD 
Sent: Saturday, February 3, 2024 5:17:16 PM
To: django-users@googlegroups.com 
Subject: Re: Book

Greetings. Saying just a portfolio site, basically there will no Django book 
that will teach u that. U have to get a tutor and start from a base. I do offer 
some Django courses from beginner level to advanced

On Sat, 3 Feb 2024, 17:16 Obam Olohu, 
mailto:olohuo...@gmail.com>> wrote:
why don't you learn directly from a tutor?


On Thu, Feb 1, 2024 at 3:14 AM Kevin Tuo 
mailto:tuokev...@gmail.com>> wrote:
Hello, Please can I get a book for building a portfolio website with django?


Envoyé à partir de Outlook pour Android

--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/AS4PR09MB55764DA8881C3AB572B7468AFA7C2%40AS4PR09MB5576.eurprd09.prod.outlook.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMc8uwNeDWk8QRicjFHg_Ph6%3DrN7ARRgGxAQBzxVM7ASFupL9g%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO0F2GYnkMY8fY_0asOyMnb6dk3nzSYe5Wpc2%3DLHjx7BeuJDBg%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/VI1PR07MB5117794750FECBD2FB73C8B4FA412%40VI1PR07MB5117.eurprd07.prod.outlook.com.


Re: Book

2024-02-03 Thread BUHNYUY RONALD
Greetings. Saying just a portfolio site, basically there will no Django
book that will teach u that. U have to get a tutor and start from a base. I
do offer some Django courses from beginner level to advanced

On Sat, 3 Feb 2024, 17:16 Obam Olohu,  wrote:

> why don't you learn directly from a tutor?
>
>
> On Thu, Feb 1, 2024 at 3:14 AM Kevin Tuo  wrote:
>
>> Hello, Please can I get a book for building a portfolio website with
>> django?
>>
>>
>> Envoyé à partir de Outlook pour Android 
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/AS4PR09MB55764DA8881C3AB572B7468AFA7C2%40AS4PR09MB5576.eurprd09.prod.outlook.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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMc8uwNeDWk8QRicjFHg_Ph6%3DrN7ARRgGxAQBzxVM7ASFupL9g%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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO0F2GYnkMY8fY_0asOyMnb6dk3nzSYe5Wpc2%3DLHjx7BeuJDBg%40mail.gmail.com.


Django project website UX: call for help!

2024-02-03 Thread 'Niccolò Mineo' via Django users
Hello everyone,
at 20tab we just finished collaborating with the Django Software Foundation 
to improve the Django project website's accessibility and usability.

We now need you to help us understand how involved people are in the Django 
project and how much they care for good UX. Fill out this very short form 
and let us know! 

https://t.co/cWiMc6SJPB

Thank you to all of you who will take the time to respond - your input is 
of immense value to us.

Feel free to raise any questions here.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e56f58cc-e56e-4183-98e2-06a01a9c1160n%40googlegroups.com.


Re: Book

2024-02-03 Thread Obam Olohu
why don't you learn directly from a tutor?


On Thu, Feb 1, 2024 at 3:14 AM Kevin Tuo  wrote:

> Hello, Please can I get a book for building a portfolio website with
> django?
>
>
> Envoyé à partir de Outlook pour Android 
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/AS4PR09MB55764DA8881C3AB572B7468AFA7C2%40AS4PR09MB5576.eurprd09.prod.outlook.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMc8uwNeDWk8QRicjFHg_Ph6%3DrN7ARRgGxAQBzxVM7ASFupL9g%40mail.gmail.com.


Re: URGENT: DJANGO & COPYRIGHT

2024-02-03 Thread Vairamuthu Puvanachandran
a1fr...@a-1url.com

On Fri, Feb 2, 2024, 6:21 p.m. Christophe Pettus  wrote:

>
>
> > On Feb 1, 2024, at 07:02, Lightning Bit <
> thelegendofearthretu...@gmail.com> wrote:
> >
> > Can one copyright an entire Django Project if it contains licensed code
> from APIs? Or, does the copyrightable code only apply to exclusive
> algorithms developed on the backend?
>
> A disclaimer: I am not a lawyer, and this is not legal advice.
>
> You cannot claim copyright on code that belongs to someone else.  The
> Django code itself, and any Python libraries that you use, belong to
> someone else.
>
> You can claim copyright on code that you (or your organization) produced
> yourselves.
>
> The Django license is here:
>
> https://github.com/django/django/blob/main/LICENSE
>
> It allows you to *redistribute* Django's code assuming some conditions are
> met.  That is not the same as claiming copyright on it.  For other software
> tools that you might use, you will need to consult their licenses to
> determine if you are permitted to redistribute them.
>
> If you are planning a commercial product based around Django, especially
> one that includes other PyPI libraries, it's a good (almost mandatory) idea
> to have a lawyer review the licenses of the various components.  You'll
> want a lawyer who is familiar with open source intellectual property issues.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/056040B8-C0B9-4C23-A0CE-DEF8795ADE86%40thebuild.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAJ%2B9rG4__C5fGZR5X9Epen-xy3RK69sMXw7ZgpNiCKEfEtyrg%40mail.gmail.com.