Archives for the 'Django' category

Django setup improvements

Posted May 6 at 10:47 CDT by Remi in Django  - 8 comment(s)

We just rolled out a number of improvements to our Django setup:

  • Support for mod_wsgi: Setting up a default Django app with mod_wsgi is now an option in our one-click installer. So if you prefer mod_wsgi over mod_python you will no longer have to install it manually. I just ran a simple benchmark using "ab -n 5000 -c 2" against a default Django site using mod_wsgi and the same using mod_python. Both were using 2 Apache worker processes. mod_wsgi was slightly faster (1400 req/sec vs 1250 req/sec) and was using slightly less memory (10MB per Apache worker process vs 12MB). Note that you can also setup a standalone mod_wsgi application in our control panel (without Django).
  • Support for the latest trunk: When you create a Django app you now have the option to use the latest trunk.
  • More django docs: We've added some more knowledge base entries at https://help.webfaction.com/django and we'll keep on adding more.
Read the full article and comments


New django installers

Posted Jun 29 at 05:32 CDT by Remi in Django  - 9 comment(s)

We've just rolled out some new django installers. New features are:

  • Latest mod_python version (3.3.1): when you create a new django app it will install the latest mod_python version by default (3.3.1). Amongst other things, this version fixes some memory leaks.
  • mod_python compiled with shared python library: the mod_python.so file went from 3MB down to 300KB.
  • Support for Python-2.5: when you create the app you can now choose between Python-2.4 and 2.5.
Remi. Read the full article and comments


Tips to keep your Django/mod_python memory usage down

Updated May 31 at 08:05 CDT (first posted May 30 at 09:57 CDT) by Remi in Django, Memory, Tips  - 9 comment(s)

Most people manage to run their Django site on mod_python within the memory limits of their "Shared 1" or "Shared 2" plans but a few people are struggling to stay within the limits.

So here are a few tips that you can use to try and keep your memory usage down when using Django on mod_python:

Read the full article and comments


Django-0.96, Zope-2.9.7, MySQLdb-1.2.2

Posted Mar 28 at 03:54 CDT by Remi in Django, MySql, Software, Zope  - 4 comment(s)

We've just added Django-0.96 and Zope-2.9.7 to our control panel. Since Django-0.96 required a newer version of MySQLdb we've upgrade MySQLdb to 1.2.2 on all servers.

If you have an existing Django app and wish to upgrade the recommended way is to manually replace the django module in $HOME/lib/python2.4 as described here.

A security hole has been found in earlier versions of Zope so it is highly recommended to upgrade to this latest Zope version. The procedure to upgrade is described here.

Remi. Read the full article and comments


Django-0.95.1, Zope-2.10.1, Plone-2.5.2-1

Updated Feb 9 at 04:21 CDT (first posted Jan 22 at 08:05 CDT) by Remi in Django, Plone, Software, Zope  - 4 comment(s)

We've just added Django-0.95.1 and Zope-2.10.1 with Plone-2.5.2-1 to our control panel.

Note that if you have an existing Django app and wish to upgrade the recommended way is to manually replace the django module in $HOME/lib/python2.4 as described in the forum.

This is because right now you can't use the one-click installer to install two different Django versions (because they both reside in the same $HOME/lib/python2.4 directory). If you want to run two different Django versions you have to install one of them manually as a custom app

Update: Since Plone-2.5.2-1 is not compatible with Zope-2.10.1 we reverted back to Zope-2.9.6 for now.

Remi. Read the full article and comments


BIG holiday present !

Updated Dec 29 at 09:34 CDT (first posted Dec 22 at 05:06 CDT) by Remi in Django, General, Plone, Python, Rails, Shared, TurboGears, Zope  - 13 comment(s)

Well, here comes our BIG holiday present to everyone:

We've added one long-running process and 40MB of RAM to all plans !

This means that Rails, Django and TurboGears hosting is now available on our "Shared 1" plan, starting at $7.50/month. Zope is now available on our "Shared 2" plan and Plone on our "Shared 3" plan.

But that's not it: we've doubled the diskspace and quadrupled the bandwidth included in each plan !

Also, a private IP address is now only $5/month and an extra 40MB of RAM is only $7/month.


Happy holidays everyone :)


Remi.

Read the full article and comments


New Django screencast, Rails-1.1.6

Updated Feb 19 at 05:58 CDT (first posted Aug 10 at 06:27 CDT) by Remi in Django, General, Python, Rails, Screencast  - 0 comment(s)

Another quick update:
  • Ian Holsman has made a new version of the Django screencast. It is updated for Django-0.95 and the sound is much better this time.
  • Rails-1.1.5 is now available in our control panel. It includes a critical security patch.

Update: Rails-1.1.6 was just released (it includes more security patches) so we've added it to our control panel.

Read the full article and comments


Django-0.95, Zope-2.9.4, Plone-2.5, Mongrel for Rails

Updated Dec 29 at 09:34 CDT (first posted Jul 31 at 05:15 CDT) by Remi in Django, General, Plone, Python, Rails, Software, Zope  - 1 comment(s)

Just a quick update on what's been happening lately:
  • Django-0.95 is already in our one-click installer, less than 24 hours after its release !
  • Zope-2.9.4 and Plone-2.5 are also in there now
  • All new Rails application are now setup to run with Mongrel by default (much faster than WEBrick)
Read the full article and comments


Django screencast

Updated Feb 19 at 05:45 CDT (first posted Jul 10 at 08:43 CDT) by Remi in Django, Help, Python, Screencast  - 15 comment(s)

Thanks to Ian Holsman, we have a screencast showing how to install a real-life Django application on our servers. Check it out here.

Read the full article and comments