APIs and background jobs
A web app handles HTTP requests; a worker runs background jobs. Give each service its own start command. Keep its database and persistent files associated with the project.
Dependencies and startup
Declare Python dependencies and version requirements in your project. Use a Dockerfile for custom system packages. Configure a production application server, environment variables and a readiness check rather than relying on a development server.
Database updates
Schema changes need planning: new code must work with existing data. Plan migrations and check changes in a staging environment. Backups protect data, but do not validate application business logic.