Requirements
- Python 3.11+ installed locally
- Account on Vertra Cloud
requirements.txtfile 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 yoursettings.py for production:
Set
SECRET_KEY and ALLOWED_HOSTS (your *.vertraweb.app subdomain and any custom domain, separated by commas) in the applicationβs environment variables before the first deploy: the app doesnβt start without them.vertracloud.config
Deploy
- Dashboard
- CLI
- VS Code
- Compress the project into a
.zip(folders likenode_modules,venvandtargetare removed automatically) or push it to GitHub. - In the dashboard, click New Project and upload the
.zipor paste the repository URL. - In Build, check the runtime (Python), the main file (
manage.py) and the memory. Start and build commands are under Advanced settings. - Add your environment variables in Environment.
- In Network, turn on web publishing so the app gets a
*.vertraweb.appaddress (512 MB of memory or more). The app must listen on port 80. - Review and deploy. Follow the output in the Logs tab.
Available Versions
Notes
- Production server: Use
gunicornto serve the Django application - Static files: Run
collectstaticand configureWhiteNoisebefore deployment - Database: Configure
psycopg2-binaryfor PostgreSQL - Migrations: Run
python manage.py migratebefore first deployment - Environment variables: Configure
SECRET_KEY, database credentials andDEBUG=False - Auto-restart: Enabled by default