📜 ⬆️ ⬇️

Django auto install

Hello, Habr!
A group of comrades from COMTET - administrators and programmers - delivers hosting to the familiar audience of php / python / perl / ruby, but tries to offer something new and continues to evolve.
At Habré, we want to not only share our experience on how to organize an all-in-one hosting service and survive, but we hope for feedback from our specialists on our innovations. During its existence, we have come across a lot of pitfalls - both in technical issues and in political and legal issues, the practice will be interesting, from communication and cooperation with foreign companies Parallels , Invision Power , Boonex and others, to publications on Yandex . CMS Magazine our RSS feeds.
Interests - from the development of PHP-engines in Russia and the automation of the hosting, to the development of Python-frameworks and virtualization systems.
We hope that our articles and news will be interesting here and look forward to the opinion and advice of Habr.

Thanks for the recommendations of the community in the comments, added material, planned for publication tomorrow:
-
Django and hosting

Django needs no introduction, the most actively developing python framework at the moment. KOMTET offers its clients 4 main frameworks: Zope, Django, TurboGears, Pylons (and Zope appeared first on the list), but there are significantly more Django projects. Zope has a fairly high threshold of entry and is mainly used for serious portals in conjunction with CMS Plone (the most striking example of archi.ru), and TurboGears and Pylons are little known in Russia.
What is now offered on the market for hosting Django-sites?


Pre-installed Django

The most common support option is the pre-installed version of Django + Python. The obvious disadvantage is that there is no way to switch to a new version of Django without the desire of the host. When changing the version, your project may stop working, due to the lack of full compatibility. There is a way out of this - installing a new version of Django “side by side” with the existing one. And to switch to the new version, it is enough to change the paths in the project configuration files.
To the note: on tariffs without SSH - you can place the finished project, if necessary, restart the project by calling the php-script:
<? php exec ('killall django.fcgi'); ?>
')
Own version of Django

With full SSH access to the console, you can install your own version of Django + Python. Actually, the ideal option for a professional, because through the use of virtualenv - gives complete independence of the project.

"Autoinstall"

The question is how to simplify the process of installing Django and deploying the project - we have been interested for a long time. KOMTET offers the habr-community to take part in testing a new feature - auto-install Django for hosting.
How it works? In the hosting control panel, everyone can create a new Django project with the latest stable version of Django installed (at the time of installation) + Python. And immediately upon installation, the options are selected:
  1. connection to MySQL / PostgreSQL database;
  2. installation of the administration panel (with a choice of language).

The installation technology itself is so-called. APS package (apsstandard.org), Django distribution - from the official website djangoproject.com. The technology is actively used to install PHP applications on hosting, but it is applicable to perl, python, ruby, etc. The state has programmers who work precisely for development.
Why auto installation?
  1. Reducing the "threshold of entry"
  2. Simplify installation
  3. To avoid “traditional” questions on installation and deployment of the project - saving time for technical support and users


What it looks like:
Django auto install

Thanks in advance for your comments. I will edit the article as the commentary material. If some of the points in the automatic installation are not clear, I will definitely sign in detail.

Thanks for attention!

Respectfully,
Ivanovsky Michael.
Comtet

Source: https://habr.com/ru/post/92273/


All Articles