A basic crud app that uses the Azure MSSQL as backend database for a django project along with Auth0 authentication
- Auth0 for application login
- Auth0 for Django Admin
- Django admin can be used to edit the models
- Sample of Migrations
- Azure SQL backend
- Djangotables 2 for a sortable grid render
- Dockerized application
- Using a docker alpine container with Azure SQL
- Clone the repository
- Build the image with
docker build django-azuresql-example -t .
- Run the image with the command below, grab the credentials from keepass
docker run -p 80:80
-v django-azuresql-example/project/service:/project/service
--env DJANGO_ALLOWED_HOSTS=*
--env DEBUG=1
--env DBNAME='nameofstagingdb'
--env USER='username@nameofstagingdb'
--env PASSWORD='password'
--env HOST='hostnameofdb'
--env DOMAIN='auth0dmain'
--env KEY='clientid'
--env SECRET='clientsecret'
--name django-azuresql-example
django-azuresql-example:latest python manage.py runserver 0.0.0.0:80