Skip to main content

Requirements

  • Python 3.11+ installed locally
  • Account on Vertra Cloud
  • requirements.txt file at project root

Project Structure

Configuration

requirements.txt

The platform automatically runs pip install -r requirements.txt. Do not include venv or __pycache__ in the upload.

settings.py

Configure your settings.py for production:

vertracloud.config

Before deployment, run python manage.py collectstatic --noinput locally to compile static files.

Deploy

  1. Execute python manage.py collectstatic --noinput locally
  2. Exclude venv, .cache, db.sqlite3 and __pycache__ from the project
  3. Compress into a ZIP file
  4. Access Dashboard → New Project → Application
  5. Select Python language and upload
  6. Configure memory (512MB recommended for Django)
  7. Click “Create Application”

Available Versions

Notes

  • Production server: Use gunicorn to serve the Django application
  • Static files: Run collectstatic and configure WhiteNoise before deployment
  • Database: Configure psycopg2-binary for PostgreSQL
  • Migrations: Run python manage.py migrate before first deployment
  • Environment variables: Configure SECRET_KEY, database credentials and DEBUG=False
  • Auto-restart: Enabled by default