Need help in deploying the Django API in Microsoft Azure

I am trying to deploy my Django REST API to Microsoft Azure. I created a resource group and an app service. The database is Azure PostgreSQL. My app works locally, but I face issues after deployment. I’m not sure how to best manage static and media files. Should I use Azure Storage or keep them inside the app service? I also need help with handling environment variables and secrets. Is Azure Key Vault the right choice for Django?

Another area of confusion is CI/CD. I see options for GitHub Actions and Azure Pipelines. I want to know which one is better for a small Django project. This is part of my AZ-104 exam learning process, and I want to apply what I study in real projects. Any advice from people who have already deployed Django apps to Azure would be very helpful.

When deploying Django on Azure, it’s best to use Azure Blob Storage with Django-Storages for static and media files, and Azure Key Vault for managing secrets. For CI/CD, GitHub Actions is simpler for small projects, while Azure Pipelines also works well. Leveraging Django development services can further streamline deployment and ensure best practices.