![]() home/myusername/private/django$ echo "" > /home/$USER/.bashrc echo "# Additional executables path" > /home/$USER/.bashrc echo "export PATH=$HOME/.local/bin:\$PATH" > /home/$USER/.bashrc. Next, run the following command to add a new executables path for this particular project:.:/home/myusername$ sureapp project shell Django Enter the shell of your web app with the following command (replace Django with the name of your web app): It is time to use Sureapp - our app management CLI tool. You can add aliases to /home/myusername/.bashrc The path to Python 3 is /usr/bin/python3. The latest version of Django requires Python 3. On our servers, Python 2 is the primary Python interpreter, so "python" and "pip" commands use Python 2 by default.Through your hosting Control Panel > SSH Access section > Additional tools, make sure that the "Compiling tools (gcc, g )" feature is enabled.Logging Into Your Account via SSH using Terminal in Mac OS Logging Into Your Account via SSH using Putty You can check our online documentation for more information on doing this: We will add the start command of the web app once Django is fully configured.Enter the directory you created in step 1 (/private/django). We use 10101 as automatically assigned port in our example. You can see the port in the apps list after creating the project. The port will be assigned automatically.In this example, we enter / (forward slash) as web access path, so the app is accessible at. For example, if you enter /django, you will be able to access the app at. Choose a subdomain at which you wish to access the app.It is only for internal reference to the app. Create the app using the WebApps section of the hosting Control Panel In this example, the directory is called "django".ΔΆ. You can create the directory using the File Manager in your hosting Control Panel. You should create a separate directory there for the app to avoid mixing its contents with other apps or other files in the private directory. We recommend that web apps be only deployed in directories in the private directory on the account. ![]() ![]() The first step is to create a directory for Django in the private directory on your account We will use Python 3, pip 3, Django, virtualenv, Python's MySQL client (mysqlclient), WhiteNoise, Gunicorn, and uWSGI in order to provide you with the tools necessary for running web applications with Django. We will set up a Django production environment. You can submit a support ticket through our ticketing system if you need assistance. If you do not have a WebApps section in your hosting Control Panel, then this tutorial is not suitable for your particular hosting environment. This tutorial will show you how to install and configure Django in a Python virtual environment within a web app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |