A Django 6 application scaffolded to run on Azure Web App.
- Create and activate the virtual environment:
python -m venv .venv .\.venv\Scripts\Activate.ps1 - Install dependencies:
python -m pip install -r requirements.txt
- Run migrations and start the development server:
python manage.py migrate python manage.py runserver
OSM is the default basemap. To enable the Microsoft Base Roads option, set the Azure Maps subscription key in the environment before starting Django:
MapsPrimaryKey=<your-Azure-Maps-primary-key>
The Azure Maps client ID is not required for this browser tile-layer integration. Restrict the subscription key to the deployed application origins and rotate it if it has been exposed.
runtime.txtselectspython-3.14Procfilestarts the app with Gunicornrequirements.txtcontains the production dependencies