DEV Community

Cover image for Django custom commands
testacc127000
testacc127000

Posted on

1

Django custom commands

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 instance

  • From a Bucket instance

  • From 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.

class PaymentStatus:
SUCCESS = "Success"
FAILURE = "Failure"
PENDING = "Pending"
view raw constants.py hosted with ❤ by GitHub

💡 Testing call out block

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay