--- title: "Django" url: https://docs.catalyst.zoho.com/en/serverless/help/appsail/help-guides/python/django/ description: "Catalyst AppSail is a fully-managed PaaS component of Catalyst Serverless that enables you to develop and deploy services in Java, Node.js, and Python in the cloud with ease, and manage your platform instances." last_updated: 2025-11-03T10:48:29Z service: Serverless type: general --- # Django Framework [Django](https://www.djangoproject.com/) is a highly popular, full-stack, open-sourced framework of Python that includes all Python features by default. This high-level framework handles much of the intricacies of web development in a built-in manner, and allows developers to focus on the logic of their apps. Django also offers inherent support for commonly-used database systems and ORM support to map objects to tables, which facilitates easy data migration. This example illustrates the steps to build a simple Python app with the Django framework. This application will then be bundled and associated with an AppSail service, and deployed to the console. 1. Create a new folder in your local system for the Django app. 2. Navigate to the directory from your terminal and execute the following command to install Django: ```python python3 -m pip install django -t . ``` 3. Create a [Django project](https://docs.djangoproject.com/en/4.1/intro/tutorial01/#creating-a-project) by executing the following command. ```python python3 -m django startproject mysite ``` > **Note:** You will need to configure your AppSail domain in `ALLOWED_HOSTS` as mentioned in [this help section](https://docs.djangoproject.com/en/4.2/ref/settings/#allowed-hosts). 4. You can now [initialize an AppSail service](https://docs.catalyst.zoho.com/en/cli/v1/initialize-resources/initialize-appsail/) in the same directory from the CLI or [add it](https://docs.catalyst.zoho.com/en/cli/v1/add-appsail/) in an existing project directory. The app's source must be your application's directory. Provide the following value while initializing the app service: **Stack**: Python_3_9 5. Ensure all the Python application files along with the `django` modules are present in the build directory you specify during initialization. Catalyst will automatically ZIP your app files during deployment to the remote console. 6. [Deploy the app service](https://docs.catalyst.zoho.com/en/cli/v1/deploy-resources/deploy-appsail//) to the console. 7. You can then configure the [startup command](https://docs.catalyst.zoho.com/en/serverless/help/appsail/key-concepts/appsail-execution/#startup-commands) given below from the console: ```python sh -c 'python3 -u mysite/manage.py runserver 0.0.0.0:${X_ZOHO_CATALYST_LISTEN_PORT}' ``` You can also configure this in the `app-config.json` file before deploying. Access the deployed app service from its [endpoint URL](https://docs.catalyst.zoho.com/en/serverless/help/appsail/key-concepts/appsail-execution/#custom-domain-url).