Gists checking
testacc127000
Posted on March 7, 2022
Steps to integrate Razorpay
Setting up Razorpay account.
Storing API keys in settings.py
Installing Razorpay library.
Creating order using Razorpay API.
-
Creating order at backend and also creating Razorpay order.
- Show template
- render to payment.html
- Get info of call back URL
- Done with creating an order.
Uploading a File
There are three ways you can upload a file:
From an
Object
instanceFrom a
Bucket
instanceFrom the
client
In each case, you have to provide the Filename
, which is the path of the file you want to upload. You’ll now explore the three alternatives. Feel free to pick whichever you like most to upload the first_file_name
to S3.
@classmethod
def replace_hashnode_gist(cls, markdown):
gist_link_regex = r"\[(https://gist\.github\.com.*?)\]"
gist_urls = re.findall(gist_link_regex, markdown)
new_markdown = markdown
for url in gist_urls:
new_url = "%" + f"[{url}]"
gist_pattern_regex = r"\[" + re.escape(url) + r".*?\)"
gist_to_replace = re.findall(gist_pattern_regex, markdown)[0]
new_markdown = new_markdown.replace(gist_to_replace, new_url)
return new_markdown
💖 💪 🙅 🚩
testacc127000
Posted on March 7, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
aws Mastering AWS Microservices Architecture for High-Traffic Systems: Interview Preparation
November 29, 2024