Public | Automated Build

Last pushed: 3 years ago
Short Description
basic Django container for docker
Full Description


basic Django container for docker

A Simple image based on CentOS 6 with python 2.7 (SCL repository)


With Django embedded webserver:

$ docker run -ti --rm -v /path/to/myapp/:/data -p 8000:8000 xdrum/django:latest python testproject/ runserver

With gunicorn and wsgi:

$ docker run -ti --rm -v /path/to/myapp:/data -p 8000:8000 xdrum/django:latest gunicorn -w 2 --bind= testproject.wsgi:application

Note that various versions (tag) are currently available from Docker hub, but it's easy to build a specific image using the Dockerfile just passing a different DJANGO_VERSION.

Docker Pull Command
Source Repository