Page 1 of 3 123 LastLast
Results 1 to 15 of 42

Thread: Django support [Case 33011]

  1. #1
    Member
    Join Date
    Feb 2005
    Posts
    240

    Default Django support [Case 33011]

    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.

  2. #2
    Member
    Join Date
    Sep 2004
    Posts
    16

    Default

    I'd really like this, too. Perhaps you should attach a poll to this thread to gauge interest?

  3. #3
    Registered User
    Join Date
    Feb 2010
    Posts
    1

    Default

    Absolutely agree... long overdue

    mod_wsgi, python at least 2.5 and django

  4. #4
    Registered User
    Join Date
    Mar 2009
    Location
    Oxfordshire, UK
    Posts
    4

    Default

    I'll vote for this too please.

  5. #5
    Member
    Join Date
    Mar 2003
    Posts
    228
    cPanel/WHM Access Level

    Root Administrator

    Default

    It will be great to have dango support on cpanel servers.

  6. #6
    Member
    Join Date
    Jul 2008
    Posts
    11

    Default

    Adding my greater than 10 character vote.

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Aug 2005
    Location
    Chicago, Illinois
    Posts
    15

    Default

    I'd also love to see a supported solution; so far as being happy to contribute to any needed development.
    Corey Northcutt
    Northcutt Consulting - Expert SEO, Social Media, Press, and Affiliate Marketing

  8. #8
    Member
    Join Date
    May 2005
    Posts
    100

    Default

    I would also appreciate Django support. To allow for Django on a cPanel/WHM platform I have to use a rather complicated architecture right now.

  9. #9
    Registered User
    Join Date
    Mar 2006
    Posts
    2

    Default

    Yes this is needed in cpanel!

  10. #10
    Member
    Join Date
    Jan 2004
    Location
    New York
    Posts
    11
    cPanel/WHM Access Level

    DataCenter Provider

    Default

    +1 for this request.

  11. #11
    Registered User
    Join Date
    Aug 2007
    Posts
    4

    Default

    +1 vote here as well

  12. #12
    Member
    Join Date
    Jul 2009
    Posts
    97

    Default

    +1 from me as well.

  13. #13
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by shacker23 View Post
    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.
    From what I understand, Django would be on-par with something like Drupal, it gives you all the tools you need to build your own web app, but in Python?

    Right now, mod_wsgi and mod_python implementations are done by means of EasyApache Custom Modules (since they are not natively part of the product, yet). In talking with folks, it seems mod_wsgi is by far the preferred implementation. In any case, this would either be an on-for-everyone or an off-for-everyone implementation with regards to mod_wsgi, similar to other Apache modules.

    As for Django, are you looking to restrict it solely as an upsell option or are there technical issues we should also be aware of? Looking at the official install options, it doesn't seem like Django was intended for a shared hosting environment where users often don't have shell access. How do you recommend this be dealt with from an implementation standpoint? Should Django essentially be a cPanel plugin?

    I've gone through Python 101 myself, but I'm not intimately familiar with Django. Hopefully you can provide some helpful insight with this .

  14. #14
    Member paulkoan's Avatar
    Join Date
    Nov 2006
    Posts
    80

    Default

    Seems to me that the biggest show-stopper here would be that Centos seems to be the preferred platform for cPanel, and that it requires python 2.4 (for yum and other system tools).

    So cPanel would need to do a parallel install for Centos for python 2.5, and I guess just check for the presence of 2.5 for other platforms.

    There are python 2.5 rpms available for Centos / RHEL5 that install "safely".
    ServWise Advanced Hosting - Better, Faster, Smarter

  15. #15
    Registered User
    Join Date
    Dec 2006
    Posts
    1

    Default

    Quote Originally Posted by cPanelDavidG View Post
    As for Django, are you looking to restrict it solely as an upsell option or are there technical issues we should also be aware of? Looking at the official install options, it doesn't seem like Django was intended for a shared hosting environment where users often don't have shell access. How do you recommend this be dealt with from an implementation standpoint? Should Django essentially be a cPanel plugin?

    I've gone through Python 101 myself, but I'm not intimately familiar with Django. Hopefully you can provide some helpful insight with this .
    Personally, I'd love to be able to simply offer Django hosting on a shared box. There are some issues, but just being able to offer it opens doors for new customers. I'd be happy if this is as simple as making a domain or subdomain be served as a django app (since that is pretty much how mod_wsgi works).

    As far as implementation goes, I'd be happy as a developer to have to provide a few details that I know the myapp.wsgi file will need:

    Domain or subdomain to serve:
    python path to your django application's settings.py: path.to.my.app.settings

Page 1 of 3 123 LastLast

Similar Threads

  1. [Case 52294] support mod_ruid2
    By ikillbill in forum Archived Feature Requests
    Replies: 39
    Last Post: 05-02-2012, 07:48 AM
  2. Does cpanel support "Python Django web framework"?
    By electric in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 12-07-2008, 05:56 PM

Tags for this Thread