Azure-Samples / djangoapp

The polls app from the official Django tutorial, that demonstrates how to build data-driven Python apps in Azure App Service.
MIT License
56 stars 426 forks source link

(AzureCXP) fixes Azure-Samples/djangoapp/edit/master/requirements.txt #13

Closed SnehaAgrawal-MSFT closed 4 years ago

SnehaAgrawal-MSFT commented 4 years ago

When following this tutorial https://docs.microsoft.com/en-us/azure/developer/python/tutorial-python-postgresql-app-portal facing issue on step Run Django database migrations when trying to connect to SSH.

Reason:
Web app was down and showing Application error. Taking closer look to the deployment logs from SCM site, noticed that one of the modules "psycopg2" was not found. so adding the following two lines in requirements.txt so that all modules are installed correctly. whitenoise psycopg2-binary

Purpose

Does this introduce a breaking change?

[ ] Yes
[ ] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

What to Check

Verify that the following are valid

Other Information

SnehaAgrawal-MSFT commented 4 years ago

@cephalin Could you please review this and help this merging.