Django / Python

Django is a high-level Python web framework that enables rapid development of secure and maintainable websites. Built by experienced developers, it takes care of much of the hassle of web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source.

It supports both Python 2 and Python 3, and you can choose from a granular version of the framework.

  1. Service Preferences a) Internal port: This is the port that the service listens to after it is deployed. Typically, port 8000 is used when Django is generated, and if you've changed that port within your source, you'll need to enter the changed value. The AppPaaS beta performs TCP health checks based on those ports. b) External port, whether to open external port: This setting determines whether the service is open to the public. By default, it is set to 443, open, and when set to open, an external domain is assigned and can be accessed from the outside via https://{assigned address}. When set to private, it is not accessible from the outside and only service-to-service communication via internal domain addresses is supported. c) Set automatic deployment: When you set automatic deployment, it will receive a hook for changes to the selected branch in your repository and automatically build and deploy when changes are made. <그림 1>

  2. Advanced Preferences a) Installation command: By default, pip install -r requirements.txt is performed. You can override it if you need to modify it. b) Start command: pyhton manage.py runserver --noreload 0:8000 will be performed. This value can be overridden as well. c) Environment variables: Variable is entered in the form of Key/Value and the entered value is injected into an environment variable of the container OS. The injected environment variables can be accessed and used via os.environ. <그림 2>

Last updated

Logo

ⓒ NHN Cloud Corp. All rights reserved.