Skip to content

Deploying a small python django app via paketo buildpacks to CF and Google Cloud Run

Notifications You must be signed in to change notification settings

cgsamp/sampjango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Sampjango

This is a sample project to exercise paketo buildpacks and the django framework

Pack

https://buildpacks.io/docs/for-platform-operators/how-to/integrate-ci/pack/

Python

Install Python https://docs.python.org/release/3.11.7/

venv

python -m venv venv
source venv/bin/activate

pip

Django

Create Django project

python -m pip install Django
django-admin startproject build

Create app within project

python manage.py startapp polls

git

Paketo

Build

pack build polls --builder paketobuildpacks/builder-jammy-full

Test

docker run --interactive --tty --publish 8000:8000 polls manage.py runserver 0.0.0.0:8000

From another terminal:

curl 127.0.0.1:8000/polls/ 

About

Deploying a small python django app via paketo buildpacks to CF and Google Cloud Run

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages