Django issues (or issues with Django)
My initial exuberance with Django has been tempered a bit by trying to get it to run on a production server. Getting Rails to run was a snap compared to getting Django to run on a Plesk server.
Once I realized I had to install an earlier version of mod-python (3.1.4) and finally got it running I was confronted with the “The Dreaded Segmentation Fault” which crashed Apache.
Patching expat as described in the article was easy enough but I still had trouble running any pages that accessed the database. So I might have had both install issues at the bottom of the Django deployment page. Even when serving up non-dynamic pages the server resources where going throught the roof.
It seems mod_python and PHP just don’t want to play nice together, and there’s now way I can give uninstall PHP too many of our old sites use it. Maybe running Django under FastCGI is the way to go.
This entry was written by
Alastair, posted on
July 25, 2006 at 11:51 pm, filed under
Misc.. Bookmark the
permalink. Follow any comments here with the
RSS feed for this post.
or leave a trackback:
Trackback URL.
© Copyright 2006 - 2012 Alastair Dawson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
2 Comments
I know this post was nearly two years ago but did you find a good way to run Django on a Plesk box (even if you had to remove PHP)? I’m running only Django on my box so the PHP aspect won’t really matter.
Hey Brian,
I didn’t get this solved under Plesk as I always needed PHP, my solution was to grab a SliceHost server and only install Python/MySQL/Django on it then use some DNS/mod rewrite trickery to have the dynamic stuff handled by Django/Slichost and the static stuff by Plesk.
P.S. Media Temple will have a Django container on their (gs) plans soon.
http://www.mediatemple.net/labs/grid/gc-django-beta.htm