pratio / django-azuresql-example

CRUD app with django and azuresql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-azuresql-example

CRUD app with django and azuresql

What is this

A basic crud app that uses the Azure MSSQL as backend database for a django project along with Auth0 authentication

What it has

  1. Auth0 for application login
  2. Auth0 for Django Admin
  3. Django admin can be used to edit the models
  4. Sample of Migrations
  5. Azure SQL backend
  6. Djangotables 2 for a sortable grid render
  7. Dockerized application
  8. Using a docker alpine container with Azure SQL

How to use

  1. Clone the repository
  2. Build the image with docker build django-azuresql-example -t .
  3. 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

Screenshots

About

CRUD app with django and azuresql


Languages

Language:Python 73.6%Language:HTML 17.6%Language:Dockerfile 8.8%