Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PratikBorge/cf-example-python-django

Open more actions menu
 
 

Repository files navigation

Dockerized Django application

Docker plus Django plus Codefresh

This is an example Python application that uses Django, pip and Docker. It is packaged using Codefresh.

More details can be found in the documentation page.

Instructions

To install dependencies

pip install -r requirements.txt 

To run tests

python -m unittest composeexample.utils

To run the webapp manually

python manage.py runserver 0.0.0.0:8000

....and navigate your browser to http://localhost:8000/

To create a docker image

docker build -t django-app .

To run the docker image

docker run -p 8000:8000 django-app

To use this project in Codefresh

There is also a codefresh.yml for easy usage with the Codefresh CI/CD platform.

Enjoy!

About

Example of Django Docker project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.4%
  • Dockerfile 4.6%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.