Issue
i'm trying to use Paddle as my payment subscription into my django website but its give me an error when i do /manage.py migrate failed to convert 'DJPADDLE_PUBLIC_KEY'; original message: RSA key format is not supported is anybody who can help me please.
I set my DJPADDLE_PUBLIC_KEY in single line, because it has more random numbers and alphabet
the settings.py file:
DJPADDLE_PUBLIC_KEY = ''
DJPADDLE_API_KEY = ''
DJPADDLE_VENDOR_ID = ''
DJPADDLE_SANDBOX = False
the error on my window cmd:
File "C:\Users\ADAMUDEE\AppData\Local\Programs\Python\Python310\lib\site-packages\djpaddle\models.py", line 12, in <module>
from . import settings, signals, mappers File "C:\Users\ADAMUDEE\AppData\Local\Programs\Python\Python310\lib\site- packages\djpaddle\settings.py", line 24, in
module>
raise ImproperlyConfigured(msg)
django.core.exceptions.ImproperlyConfigured: failed to convert
'DJPADDLE_PUBLIC_KEY'; original message: RSA key format is not
supported
Solution
I have solved my problem by putting triple quotes at """-----BEGIN PUBLIC KEY----- DJPADDLE_PUBLIC_KEY -----END PUBLIC KEY-----"""
I hope that could help other in the future.
Answered By - Adamu Abdulkarim
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.