AdminLTE PRO Deployment

AdminLTE PRO Deployment#

This page explains how to deploy Django AdminLTE PRO 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: django-adminlte-pro
    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#

  • Authenticate on Render

  • 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 Django AdminLTE PRO DEMO.

Django AdminLTE PRO - Premium Starter built on top of AdminLTE