Skip to main content

Tool to deploy a Django App onto GCP

Project description

Django Deploy

Django Deploy is an experimental tool designed to make it easier to deploy new and existing Django applications on public clouds (e.g. Kubernetes Engine).

Currently, Django Deploy can only

  • Deploy to Kubernetes Engine.
  • Deploy applications created using its own template code.

Django Deploy is an experimental project not officially supported by Google.

Here is an example usage:

$ django-cloud-deploy new
11 steps to setup your new project

[1/11] In order to deploy your application, you must allow Django Deploy to access your Google account.
Press [Enter] to open a browser window to allow access
[2/11] Enter a Google Cloud Platform Project ID, or leave blank to use
[django-799931]: my-cool-site 
[3/11] Enter a Google Cloud Platform project name, or leave blank to use
[Django Project]: My Cool Site
[4/11] In order to deploy your application, you must enable billing for your Google Cloud Project.
You have the following existing billing accounts: 
1. My Billing Account
Please enter your numeric choice or press [Enter] to create a new billing account: 1
[5/11] Enter a password for the default database user "postgres"
Password: 
Password (again): 
[6/11] Enter a new directory path to store project source, or leave blank to use
[/usr/local/google/home/bquinlan/my-cool-site]: 
[7/11] Enter a Django project name, or leave blank to use
[mysite]: mycoolsite
[8/11] Enter a Django app name, or leave blank to use
[home]: mycoolapp
[9/11] Enter a name for the Django superuser, or leave blank to use
[admin]: myname
[10/11] Enter a password for the Django superuser "myname"
Password: 
Password (again): 
[11/11] Enter a e-mail address for the Django superuser, or leave blank to use
[test@example.com]: myname@example.com

Getting Started

For detailed instructions on how to use Django Deploy, see the Getting Started Guide.

Development Workflow (Linux)

Verify that Python 3.5 or later is installed:

python3 -V

Clone the project and cd to it's directory:

git clone https://github.com/GoogleCloudPlatform/django-cloud-deploy
cd django-cloud-deploy

Create a new virtual environment:

virtualenv -p python3 venv
source venv/bin/activate

Install Django Deploy in edit mode:

pip install -e .

Run it:

django-cloud-deploy new

Code modifications will be reflected in the next run of django-cloud-deploy.

Contribute

Check out our CONTRIBUTING to find out how you can help.

License

This project is licensed under the Apache License - see the LICENSE file for details

This is not an officially supported Google product.

Status

Django Deploy is an experimental project not officially supported by Google.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-cloud-deploy-0.1.2.tar.gz (19.3 MB view details)

Uploaded Source

Built Distribution

django_cloud_deploy-0.1.2-py3-none-any.whl (26.7 MB view details)

Uploaded Python 3

File details

Details for the file django-cloud-deploy-0.1.2.tar.gz.

File metadata

  • Download URL: django-cloud-deploy-0.1.2.tar.gz
  • Upload date:
  • Size: 19.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.5.3

File hashes

Hashes for django-cloud-deploy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e5545a7b2726ad9fd57bc492149d5e614b98ae17d6807390c6d187e48c038541
MD5 fa366bdc6412e0c4bbd11d4725c4ae55
BLAKE2b-256 5d3a291cf76db7d60b24c3292b33ab1acc6f812bfd878d9ce1f1df9db047caaa

See more details on using hashes here.

Provenance

File details

Details for the file django_cloud_deploy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: django_cloud_deploy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 26.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.5.3

File hashes

Hashes for django_cloud_deploy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3fe249e84ebdffb7509c2e0f1ea47a16fb90d48428be7f1555241d5803af6096
MD5 ffe6fb6478a877a4aa2b7a34f81173fb
BLAKE2b-256 068997f4e5a05327b15238de053d3b2cdbed8fdeb5c53f8b6f8a21a20740a41f

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page