Closed v-jiaodi closed 12 months ago
Interesting, I didn't realize gunicorn didn't work on Windows. It should work inside a Dev Container in VS Code in Windows. We can probably figure out commands for each framework that will work locally on Windows - flask has its own dev server, django has its own dev server, and fastapi can be run with uvicorn. Thanks for the report! @kjaymiller
@v-jiaodi can you try to run locally again?
@kjaymiller The issue still exists.
@v-jiaodi Can you confirm that you tried the new instructions in the updated README?
https://github.com/Azure-Samples/azure-django-postgres-flexible-aca#running-locally
It now says:
python3 src/manage.py runserver 8000
That does not use gunicorn, so I hope is that it works for you.
@pamelafox It works with the new instructions python3 src/manage.py runserver 8000
.
The following templates still has this issue:
@v-jiaodi We have merged the README updates to those repos. Can you take a look and confirm that works for you?
It works.
Describe the issue: When test
Running locally
on Windows, runpython -m gunicorn project.wsgi:application --pythonpath src --reload
, get error as follow:Repro Steps:
python -m pip install -r src/requirements.txt
python src/manage.py migrate
python src/manage.py loaddata src/seed_data.json
python src/manage.py collectstatic
python -m gunicorn project.wsgi:application --pythonpath src --reload
Environment:
Expected behavior: Please confirm if it can be supported on Windows. If so, it is expected that
Run locally
will pass.@pamelafox for notification.