Python | Django | Integrations

Last Updated :
Discuss
Comments

Question 1

What does adding Google OAuth2 authentication to a Django app allow?

  • Users to log in with Google and the app to fetch their Gmail data with permission

  • Using Google Sheets as Django backend

  • Automatic database backups to Google Drive

  • Running Django app on Google Cloud only

Question 2

What must a developer obtain from Google before enabling Google login and mail fetching in Django?

  • A Gmail account only

  • Client ID and Client Secret

  • A paid Google Workspace subscription

  • Google Drive API key

Question 3

In a Django-Razorpay integration, what is stored to track payment order status in the database?

  • Only amount and date

  • User’s browser cookies

  • Credit card number of user

  • Order ID from Razorpay, payment ID, signature, amount, status, timestamps

Question 4

When using ReactJS for frontend and Django with DRF for backend, what is the role of Django?

  • It handles UI and styling

  • It runs npm commands

  • It manages backend logic, data storage and exposes APIs for React to call

  • It compiles React code into HTML

Question 5

What extra package is often needed when connecting Django backend with React frontend to allow cross-domain requests?

  • django-staticfiles

  • django-cors-headers

  • django-auth

  • react-router

Question 6

When integrating Django with AWS RDS, what adapter must be installed for database connectivity?

  • psycopg2-binary

  • mysqlclient

  • sqlite3

  • django-rds

Question 7

After configuring AWS RDS settings in Django (ENGINE, NAME, USER, PASSWORD, HOST, PORT), what must be done before using the database?

  • Manually create tables in AWS console

  • Skip migrations, use raw SQL

  • Run django migrations (makemigrations + migrate) to create tables

  • Restart AWS server

Question 8

Why is using a payment gateway like Razorpay preferred over building custom payment handling in Django?

  • Because payment gateways are mandatory for any project

  • Because Razorpay handles payment processing, security and compliance

  • Because Django does not support payment processing

  • Because payments can only be processed with Razorpay in India

Tags:

There are 8 questions to complete.

Take a part in the ongoing discussion