This django app is created following the official django tutorial. Added a welcome app to serve the website homepage.
- You would need an Azure subscription to complete the tutorial. You can create a free account to start with: https://azure.microsoft.com/en-us/free/.
- This web app requires a MySQL Server (django.db.backends.mysql) as the backend, you can also use PostgreSQL server as the backend. You can easily create a Azure Database for MySQL using Azure portal https://ms.portal.azure.com/#create/Microsoft.MySQLServer.
- This tutorial uses Visual Studio Code as code editor and deployment too. You can download VSCode for free from https://code.visualstudio.com/download.
- Follow the getting-started instructions to install VSCode App Service Extension.
Get the source code onto your dev machine: $ git clone https://github.com/yiliaomsft/pycon19-django.git
Load the local source code repo into VSCode: $ cd pycon19-django $ code .
Please update the settings.py file to include your own database connection string.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': '<database name>',
'USER': '<database user name>',
'PASSWORD': 'database password',
'HOST': 'database host',
}
}
Follow the instructions to create a new web app and deploy the django app to Linux App Service.