Setting up a Python website with Ajenti V (Django example)
In this tutorial we will set up a Python website with Ajenti V, using a test Django project as example.
Prerequisites: Ajenti V (NGINX, Python-WSGI packages)
(Optional) creating a Django project
1. Create an empty project and DB
1. Navigate to Ajenti panel, and open Websites section. Click Create button, and expand newly created New Website entry.
![Image 13](/s/attachments/4472/5/1/1df00b4e3372c1c0b9ed51b6364ab3d9.png)
2. Uncheck Maintenance mode checkbox, and Path to your website's path.
![Image 14](/s/attachments/4472/5/1/15bd7f352f8d4125191c35cd237e12a1.png)
3. Under Identification page, Create and set a domain entry.
![Image 17](/s/attachments/4472/5/1/48f9a73dd86479aeed2c2cafe2b453e5.png)
4. Under Content page, Create a new content entry of type Python.
![Image 27](/s/attachments/4472/5/1/d0af1a6ccff052c46463e8edbade41c2.png)
Set the Virtualenv path (/env) and Django-generated WSGI module name (testsite.wsgi)
![Image 28](/s/attachments/4472/5/1/d926a27f428760024e9eeb2020e7bccb.png)
4. Optionally, create an additional Static Files entry for Django's static files
![Image 29](/s/attachments/4472/5/1/974e365faee0ac4b442caceaa0d7df0e.png)
5. Click Apply changes
6. Done! Now navigate to http://domain/.
Prerequisites: Ajenti V (NGINX, Python-WSGI packages)
(Optional) creating a Django project
1. Create an empty project and DB
$ django-admin.py startproject testsite $ cd testsite $ ./manage.py syncdb $ echo 'STATIC_ROOT="public/static"' >> testsite/settings.py $ mkdir -p public/static $ ./manage.py collectstatic2. Create virtualenv
$ virtualenv env $ source env/bin/activate $ pip install Django gunicornSetting up Ajenti V
1. Navigate to Ajenti panel, and open Websites section. Click Create button, and expand newly created New Website entry.
![Image 13](/s/attachments/4472/5/1/1df00b4e3372c1c0b9ed51b6364ab3d9.png)
2. Uncheck Maintenance mode checkbox, and Path to your website's path.
![Image 14](/s/attachments/4472/5/1/15bd7f352f8d4125191c35cd237e12a1.png)
3. Under Identification page, Create and set a domain entry.
![Image 17](/s/attachments/4472/5/1/48f9a73dd86479aeed2c2cafe2b453e5.png)
4. Under Content page, Create a new content entry of type Python.
![Image 27](/s/attachments/4472/5/1/d0af1a6ccff052c46463e8edbade41c2.png)
Set the Virtualenv path (/env) and Django-generated WSGI module name (testsite.wsgi)
![Image 28](/s/attachments/4472/5/1/d926a27f428760024e9eeb2020e7bccb.png)
4. Optionally, create an additional Static Files entry for Django's static files
![Image 29](/s/attachments/4472/5/1/974e365faee0ac4b442caceaa0d7df0e.png)
5. Click Apply changes
6. Done! Now navigate to http://domain/.
Служба підтримки клієнтів працює на UserEcho