From 0e1ec1b871936702af1e060ab7cf7b54b573eece Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Fri, 2 Aug 2024 12:14:25 +0200 Subject: [PATCH] Update how-to-setup-django-on-openpanel.md --- .../how-to-setup-django-on-openpanel.md | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/documentation/docs/articles/user-experience/how-to-setup-django-on-openpanel.md b/documentation/docs/articles/user-experience/how-to-setup-django-on-openpanel.md index b79024ea..fa83e08e 100644 --- a/documentation/docs/articles/user-experience/how-to-setup-django-on-openpanel.md +++ b/documentation/docs/articles/user-experience/how-to-setup-django-on-openpanel.md @@ -9,44 +9,45 @@ Here’s a step-by-step guide to installing a Python-based application like Djan Navigate to **OpenPanel > Domains** to add the domain name you will use for your app. Ensure the domain name is pointed to the server's IP address, which you can find on the Dashboard page. Verify that you can access the domain. - -SLIKAAAAAA - - -###Step 2: Install Django Using AutoInstaller +### Step 2: Open AutoInstaller In the OpenPanel menu, click on **Auto Installer** and select **Install** under the **NodeJS & Python** section. -SLIKA +[![2024-08-02-12-05.png](https://i.postimg.cc/qq6JhywP/2024-08-02-12-05.png)](https://postimg.cc/N2YqZyWD) -In the form, choose your domain name under Application URL. +### Step 3. Fill the form -SLIKA +In the form, choose your domain name under 'Application URL'. -In the Application Startup File field, enter domainname/manage.py (replace domainname with your actual domain name). +![2024-08-02-12-07-1.png](https://i.postimg.cc/fLLTs69T/2024-08-02-12-07-1.png) -SLIKA +In the 'Application Startup File' field, enter domainname/manage.py (replace domainname with your actual domain name). -In the Optional flags section, set the Django runserver command as follows: runserver 0.0.0.0:8000 (replace 8000 with your desired port number). +![2024-08-02-12-07-2.png](https://i.postimg.cc/SKVNwyjv/2024-08-02-12-07-2.png)] -SLIKA +In the 'Optional flags' section, set the Django runserver command as follows: `runserver 0.0.0.0:3000` (replace 3000 with your desired port number). -For the Type field, select Python, and in the Port field, enter the same port number you used in the runserver flag (e.g., 8000). +![2024-08-02-12-07-3.png](https://i.postimg.cc/FKhHWfFS/2024-08-02-12-07-3.png)] -SLIKA +For the 'Type' field, select **Python**: -Click Create and wait a few minutes for the process to complete. +![2024-08-02-12-08.png](https://i.postimg.cc/5NFy6dkX/2024-08-02-12-08.png)] + +and in the 'Port' field, enter the same port number you used in the runserver flag (e.g., 3000). + +![2024-08-02-12-08-1.png](https://i.postimg.cc/52BtS5J1/2024-08-02-12-08-1.png)] -SLIKA +Click **Create** and wait a few minutes for the process to complete. + +![2024-08-02-12-07.png](https://i.postimg.cc/850kztRd/2024-08-02-12-07.png)] Note: The initial setup might be slow as it installs PM2, Python, Django admin, and other dependencies. Subsequent application setups will be faster. - - -### Step 3. Test in browser +### Step 4. Test in browser Once the installation is complete, open your domain in a web browser to test the setup. +![2024-08-02-12-08-3.png](https://i.postimg.cc/CM2dhLJy/2024-08-02-12-08-3.png)]