Azure-Samples / docker-django-webapp-linux

A simple Python Django application running in a Docker container.
MIT License
54 stars 220 forks source link

Questions about the tutorial #11

Open masish opened 2 years ago

masish commented 2 years ago

I tried below tutorial. https://docs.microsoft.com/en-us/azure/app-service/tutorial-custom-container?pivots=container-linux#code-try-16

when I tried working sample on locally, I encountered below error when executed command "docker run -it -p 8000:8000 appsvc-tutorial-custom-image"

image

However, tutorial is working without this command "python manage.py migrate".

I think that we don't need executing this command for this tutorial, so this execution not in the tutorial steps, right? I understand "python manage.py migrate" is for preparing database tables for app. If application use a database and need to execute the command, Should we define the execution of the command in the docker file?

Augustukas commented 1 year ago

bump