# 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.&#x20;

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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.apppaas.com/start/en/frameworks/django-python.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
