Django 2 with the Platform.sh CLI | Platform.sh Demo

Published: 19 February 2020
on channel: Platform.sh
425
2

Try Platform.sh: https://accounts.platform.sh/checkout/

Django is a web-application framework written in Python.

Django applications can be initialized to run on Platform.sh quickly using the Platform.sh CLI.

First, you can use the CLI command platform create to create a new project, specifying the region, plan size, number of development environments, and storage you want for the project. The project will be created in just a few seconds, and the CLI will provide a project ID you can now use to interact with it.

Next, you can use the CLI command platform environment:init along with the project ID to initialize the project with an existing Django repository, such as one of our Django templates. So long as the repository contains Platform.sh configuration files, it will then build and deploy the site. First, Platform.sh will run through the build hook of the application's .platform.app.yaml file, which defines its build process, by first downloading all of its dependencies defined in the Pipfile.lock. Once completed, Platform.sh will validate domains for the environment, and issue new Let's Encrypt certificates for them if not present or if they will soon expire. Then the environment is created and deployed.

Finally, you can verify that the Django application deployed successfully by visiting the site using the CLI command platform url.

The command will open a new browser window, and you will see that your Django site is now ready.
_____
Learn more about Platform.sh: https://platform.sh/
Get started with a free trial: https://auth.api.platform.sh/
Have a question? Contact us: https://platform.sh/contact/

Follow us on social media:
Twitter:   / platformsh  
Twitter (France):   / platformsh_fr  
LinkedIn:   / platformsh  
LinkedIn (France):   / platform-sh-france  
Facebook:   / platform.sh  

About Platform.sh
Platform.sh combines a robust, highly reliable hosting platform and modern tools that enable development teams to build, evolve, and scale applications faster and more efficiently—contributing to achieving departmental and organizational goals.

Whether your organization has one website or 1,000, Platform.sh lets your dev team focus on creating innovative, sticky features and apps with their favorite tools, languages, and frameworks—instead of managing infrastructure and process.


Watch video Django 2 with the Platform.sh CLI | Platform.sh Demo online without registration, duration 16 minute 40 second in high quality. This video was added by user Platform.sh 19 February 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 425 once and liked it 2 people.