Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Django support

Nathan Lierbo shared this idea 12 years ago
Completed

I'm getting a number of Django requests from users. Django is a Python-based web application framework similar to Ruby on Rails but with several advantages over RoR. cPanel did such a nice job with the Ruby on Rails integration, it sure would be nice to see parallel integration of Django.


Dreamhost recently rolled out official Django support and we don't want to lose users to Dreamhost.


Deployment should be via mod_wsgi, not mod_python (mod_wsgi provides much better performance and configurability). The current approach to setting up Django on cPanel is to compile the module manually, which is fairly tricky to do right, with libraries linked properly so they don't consume too much memory, and then to set up properly configured custom vhosts and .wsgi files for individual sites, all of which is fiddly and error prone (and not possible for users to do on their own). For details on the current setup approach, see links below.


Finally, because EasyApache doesn't know about mod_wsgi, the custom-compiled library is literally blown away every time you recompile Apache, which means you have to remember to restore the module from a backup copy after each recompile - another pain.


Ideally, admins would be able to enable either global or per-user Django support, and users would be able to set up new Django sites themselves, from within cPanel. Users would need the ability to restart their sites / .wsgi processes (the favored method is to simply "touch mysite.wsgi" but this could be done via cPanel), and the mod_wsgi lib would not get erased when Apache was recompiled.


Note: This feature request is a continuation of this thread, which resulted in this bugzilla ticket.


Original thread: http://forums.cpanel.net/f145/django-support-case-33011-a-146541.html

Replies (20)

photo
2

Would be nice to have a pip UI like we do for CPAN, gems, etc …

photo
3

It Would be very much simplier, if cPanel suports python 2.7 sharing libraries and binaries.

It should not take much to embbed or mark as a requirement, to install other packages like: python-setuptools python-pip and python-virtualenv (wich could be used to recriate some as-ruby solution to the django(and other frameworks as web2py for instance) support.

photo
1

Why does CPanel continue ignoring requests for supporting Python/Django?


Just like you, almost a year ago I asked CPanel about the possibility of supporting Python (and Django) on this thread http://forums.cpanel.net/f43/trash-directory-size-isnt-included-mailbox-quota-280252.html


Time has passed and there are no official news from CPanel about that. And the thread above is dead.


You will also notice that on the above thread @cPanelDavidG makes mention of this URL http://go.cpanel.net/python to read news for an upcoming Python implementation.


However this URL is now also dead.


After some tweeting and Googling I have been referenced to this page from Litespeed

http://www.litespeedtech.com/products/litespeed-sapi/python

so I am evaluating to use Litespeed to support Python/Django, and maybe other languages too.


I was also thinking in asking Softaculous people to see if they could work a plugin that could install Python/DJango environments that could allow our customers to upload programs in this languages and why not a CSV solution too.


What do you think?

photo
1

albatroz wrote:

Why does CPanel continue ignoring requests for supporting Python/Django?


Just like you, almost a year ago I asked CPanel about the possibility of supporting Python (and Django) on this thread http://forums.cpanel.net/f43/trash-directory-size-isnt-included-mailbox-quota-280252.html


Time has passed and there are no official news from CPanel about that. And the thread above is dead.


You will also notice that on the above thread @cPanelDavidG makes mention of this URL http://go.cpanel.net/python to read news for an upcoming Python implementation.


However this URL is now also dead.


After some tweeting and Googling I have been referenced to this page from Litespeed

http://www.litespeedtech.com/products/litespeed-sapi/python

so I am evaluating to use Litespeed to support Python/Django, and maybe other languages too.


I was also thinking in asking Softaculous people to see if they could work a plugin that could install Python/DJango environments that could allow our customers to upload programs in this languages and why not a CSV solution too.


What do you think?

I really don´t like to use another "unnecessary layers" on top of cPanel.

Maybe I don´t get it maximum potencial, but I prefer not to overload things.

So, things like softaculous isn´t available for my clients, unfortunately. I´m thinking cPanel guys don´t want to understand the django way of things, or the django structure. The thing is, the deploy of django is a bit tricky, I accept that. But these guys (us), are willing to help, because they need that feature, and it would be great.

I´ve read on that post^: http://forums.cpanel.net/f5/django-python-cpanel-71229-p2.html that they need to update EasyApache first.

I saw on some blogs, deploys like this:

http://server-support.co/blog/sysadmin/django-on-cpanel-server-for-shared-web-hosting/

but, I really don´t want to risk all my working stuff, to install that way.

Some review by the cPanel guys would be good on that issue.

photo
1

Migrated off a server with PHP and Django support. Django is preferred for new development. I can get by with Django serving the static pages, but I need wsgi, python, and Django, of course.

photo
1

i´m loosing clients as well.

hurry up cpanel!!!!

photo
1

We need this aswell urgently.

photo
3

Yes, client demand is increasing for this!

photo
2

We need Django in cPanel. Please help us :-)

photo
1

Finally Cloudlinux released a solution to this problem....

take a look here

https://forums.cpanel.net/threads/cloudlinux-python-and-ruby-selector-new-feature.462021/

photo
1

Python/Django are one of most used stack that these days people use to build websites, support for Ruby & Ruby on Rails is a built in cPanel feature but no mentioning about Django or Python.


Python have a very well organized solution and packaging all around it.


Simply for each application an VirtualEnv can be created and all the use python packages can be installed in a isolated place, even ENV Vars can be configured with not much of hassle.

photo
2

Exactly python support will be awesome! Bored of PHP coding not fun...

photo
1

It would be an awesome feature... Can somebody from cPanel comment on this?

photo
1

cPanel web hosting is all about PHP and MySQL, it's considered for past.

Nowadays, it's all about Django, GoLang, NodeJS, Closure, Rais, Rust and many more that are driving the web to the top, but shared web hosting is still on PHP and MySQL and nothing more that that.

photo
2

Hence the push to support it. PHP MySQL combination is a great and powerful starter but the point is that as you said, NodeJS, Django and AngularJS 2 are building the web in powerful new ways, its important that cpanel stays abreast of these technologies so that its user-base grows and is able to maintain market share.

photo
1

Exactly, amazing new ways and technologies that are being used to develop web application, it's not limited to PHP MySQL anymore.


Python, Ruby, PostgreSQL, etc,, they're going crazy on trends

photo
1

The way the web is getting build now is completely different from the shared web hosting prospective, new languages for backend are all over the place while people have to get into AWS or Heroku, DO, etc.. to host their web applications.


Either PHP, Python, Ruby, GoLang or Rustlang can be used to build web application and they are in the market pretty much higher and higher than before.


cPanel has been on PHP for a long long time without really providing anything out of the box for other languages.

photo
2

Django, Nodejs, etc... are not a option in the current way cPanel is developing this software.


We need a new design based in master and slaves. This will permit to create a Django slave or a Nodejs slave without security issues that is the main restriction in the current design.


To follow on this request, please, vote here: https://features.cpanel.net/topic/multiple-cpanel-slaves-under-whm-masters-cpanel-cloud


Regards!!

photo
2

Before we tell cPanel to re-invent the wheel, have a look at Passenger which supports both NodeJS, Python (and Django) and Ruby. This is included by default in CloudLinux, like many other PHP/Apache features as well.

photo
1

Django no longer support fcgi , it only works as tcp service with a dedicated port. If you have 100 django install , it need to listen on 100 ports and use apache proxy module to get access to that site.

photo
1

Putting my support here. Python support (and by extension Django) is really needed! Python and Node.js seem to have support on CloudLinux, since my provider was willing to install them without issue.

Replies have been locked on this page!