Deployment#

This page explains how to deploy Dynamic Django on Render, a popular service for developers.

👉 New to App-Generator? Join our 10k+ Community using GitHub One-Click SignIN.

Configuration#

The files that handles this step are:

  • render.yaml: the deployment descriptor

  • build.sh: bash script that executes the compialtion steps in the remote server

render.yaml#
services:
- type: web
    name: appseed-v2
    plan: starter
    env: python
    region: frankfurt  # region should be same as your database region.
    buildCommand: "./build.sh"
    startCommand: "gunicorn core.wsgi:application"
    envVars:
    - key: DEBUG
        value: True
    - key: SECRET_KEY
        generateValue: true
    - key: WEB_CONCURRENCY
        value: 4
build.sh#
python -m pip install --upgrade pip
pip install -r requirements.txt

# Collect Static
python manage.py collectstatic --no-input

# Migrate DB
python manage.py makemigrations
python manage.py migrate

Steps to Follow#

  • You’ll need to create a Blueprint instance on Render by going to this link.

  • Connect the repository that you want to deploy.

  • Fill in the Service Group Name and click on the Update Existing Resources button.

  • Click on Environment and add key called PYTHON_VERSION and set it equal to 3.12.0.

  • After you make this change, the deployment will start automatically.

In the end you should have a LIVE deployment identical to the official Dynamic Django DEMO.

Dynamic Django - Dynamic DataTables view: minimal configuration, fully-fleged server-side paginated view

Deploy on Render#

This video material explains how to deploy on Render the Dynamic Django starter.