To deploy a Django application in Ploomber Cloud you need:


You need to provide a Dockerfile, you can use this template to get started. A basic Dockerfile looks like this:

FROM python:3.11

# copy source code files
COPY . .

# install dependencies
RUN pip install -r requirements.txt --no-cache-dir

# start app, the file is generated automatically when starting a Django project
ENTRYPOINT ["gunicorn", "basicapp.wsgi", "run", "--bind", ""]

Testing locally#

To test your app, you can use docker locally:

# build the docker image
docker build . -t django

# run it
docker run -p 5000:80 django

Now, open to see your app.


Once you have all your files, create a zip file.

To deploy a Flask app from the deployment menu, follow these instructions:


To ensure your app doesn’t break on re-deployments, pin your dependencies.