Re: Weird session

2007-03-01 Thread Graham Dumpleton
On Mar 2, 2:57 pm, "Seth Buntin" <[EMAIL PROTECTED]> wrote: > That probably isn't too far off. One time it did work and it was > weird so I might have actually got one of the threads to fire > correctly. Is there a way to limit the amount of threadsmod_python > uses? The threads are not created

Re: Multiple Django installations on the same Apache with mod_python

2007-03-18 Thread Graham Dumpleton
Remove: PythonInterpPerDirective On You are not meant to have that line. Only use the PythonInterpreter directive line. Graham On Mar 19, 3:16 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm trying to set up multiple Django installations on the same Apache > server, same

Re: Trouble setting up Django and Apache

2007-03-22 Thread Graham Dumpleton
On Mar 23, 2:49 pm, "benrawk" <[EMAIL PROTECTED]> wrote: > Also, when I import and print sys.path into a python session, with > apache running in the background, sys.path does not include '/home/ > benrawk'. Is it supposed to? Is there a way I can check the value of > PythonPath as it is defined i

Re: Trouble setting up Django and Apache

2007-03-23 Thread Graham Dumpleton
On Mar 23, 6:47 pm, "benrawk" <[EMAIL PROTECTED]> wrote: > Thank you again for helping. FYI, I am using Fedora Core 6. I set > 'PythonHandlermod_python.testhandler' in httpd.conf and got a bunch > of info. The sys.path appears to be correct...relevant bits, and then > full text beneath. > > sys.pa

Re: Does the server have to restarted when you make a change to the code?

2007-03-27 Thread Graham Dumpleton
On Mar 28, 5:13 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 3/27/07, walterbyrd <[EMAIL PROTECTED]> wrote: > > > Is that post correct? You have to restart the server whenever you make > > a change to the django code? > > For templates, no. For changes to the actual Python code in use, ge

Re: a very slow view, > 30secs to load

2007-03-29 Thread Graham Dumpleton
On Mar 30, 5:26 am, "Milan Andric" <[EMAIL PROTECTED]> wrote: > On Mar 28, 6:26 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > > > On Wed, 2007-03-28 at 19:59 +, Milan Andric wrote: > > > Hellow, > > > > Any advice you can offer on optimizing this view would be greatly > > > appre

Re: Django/mod_python high memory usage - possible leak?

2007-03-30 Thread Graham Dumpleton
On Mar 30, 6:31 pm, Steven Armstrong <[EMAIL PROTECTED]> wrote: > My understanding is that every apache child pulls in all modules > (mod_python, mod_perl, mod_php, mod_your_favorite_mod_here) which all > consume memory. So you end up with loads of processes using ??MB of RAM > to serve up e.g. a

Re: Web Sites keep pointing against each other

2007-04-03 Thread Graham Dumpleton
On Apr 4, 4:38 am, "Keith Mallory" <[EMAIL PROTECTED]> wrote: > I have a Ubuntu Server with 4-5 Django web sites hosted on mod_python. > > Everything works fine, expect that the web sites keeps on pointing against > each other. That Site A points to Site B and B to C and so on. > > This is how I

Re: DJANGO and modpy reloading hell...

2007-04-13 Thread Graham Dumpleton
On Apr 13, 5:20 pm, "durumdara" <[EMAIL PROTECTED]> wrote: > Hi ! > > I want to substitute my modpy based website to any framework system, > but I have a question: > > The development under modpy sometimes became very hard, because the > python in the normal working mode does not reload the module

Re: DJANGO and modpy reloading hell...

2007-04-14 Thread Graham Dumpleton
On Apr 13, 10:59 pm, "Luciano Adamiak" <[EMAIL PROTECTED]> wrote: > It's for the whole thing... I guess > > But it will prevent your restarting every change.. But it still happens automatically and as a result everything runs very slowly. At that point you may as well use CGI which may even be a

Re: multiple urls for the same view?

2007-04-20 Thread Graham Dumpleton
You need to set PythonInterpreter directive in each Location container directive with a different value in each case. This is so that each Django instance runs in its own Python sub interpreter. You should also change your settings.py file for each and set SESSION_COOKIE_NAME to a different value

Re: "mpm-prefork" vs. "mpm-worker"

2007-04-24 Thread Graham Dumpleton
On Apr 24, 9:22 pm, Filipe Correia <[EMAIL PROTECTED]> wrote: > Hi, > > I think the following thread may help > you:http://groups.google.com/group/django-users/browse_frm/thread/22a6d00... Except that no one has still yet explained why the page: http://www.djangoproject.com/documentation/modp

Re: Please help, strange errors crashing my site

2007-04-24 Thread Graham Dumpleton
Stupid Google groups seems to have trashed my last response, now I have to type it all in again. Apologies if this is a duplicate. Anyway, for one explanation, see description on access rights of Apache user in mod_wsgi documentation at: http://code.google.com/p/modwsgi/wiki/ApplicationIssues

Re: Please help, strange errors crashing my site

2007-04-25 Thread Graham Dumpleton
Both mod_wsgi and TurboGears contain specific notes about this issue with Python eggs when using Python running inside of Apache. In mod_wsgi documentation read section on 'Access Rights Of Apache User' in: http://code.google.com/p/modwsgi/wiki/ApplicationIssues In TurboGears documentation re

Re: "mpm-prefork" vs. "mpm-worker"

2007-04-25 Thread Graham Dumpleton
On Apr 25, 7:10 pm, Atilla <[EMAIL PROTECTED]> wrote: > I personally find it Very bad to bind Django users to 1 apache worker > model, considering how the Apache modules progress and the performance > you can get out of using clever configurations. Can you elaborate on this further? I often see p

Re: new to django, please advise w/ some questions and concerns

2007-04-25 Thread Graham Dumpleton
On Apr 26, 8:10 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 4/25/07, Jin Lee <[EMAIL PROTECTED]> wrote: > > 5) Using apache, can you run a pool of django processes so that if one user > > is doing something particularly heavy, it doesnt slow down the entire site? > > (Basically what you do

Re: cannot get REQUEST_URI

2007-04-28 Thread Graham Dumpleton
On Apr 29, 1:42 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-04-28 at 15:22 +, omat * gezgin.com wrote: > > Because request.META['PATH_INFO'] is only available when running the > > test server. > > > This is also a point of inconvenience and I think the test server > > shou

Re: QueryDict variables with multiple levels

2007-05-03 Thread Graham Dumpleton
FWIW, In Ian Bicking's FormEncode package there is a form variable decoder which does something similar to what you want and maybe of interest to you. To quote from the source code: """ Takes GET/POST variable dictionary, as might be returned by ``cgi``, and turns them into lists and dictionaries

Re: Vote to support dreamhost mod_python

2007-05-04 Thread Graham Dumpleton
On May 4, 7:31 pm, "Marc Fargas Esteve" <[EMAIL PROTECTED]> wrote: > Has far as I know you cannot run mod_python applications as different users, > everything runs as the web server user except with some experimental module > around there, if this is the case, I would not go for mod_python. Which

Re: Deos Django have Java Servlet's Listener like thing?

2007-05-06 Thread Graham Dumpleton
On May 6, 1:57 am, Martin Winkler <[EMAIL PROTECTED]> wrote: > Am Fri, 04 May 2007 21:06:52 -0700 > schrieb Mambaragi <[EMAIL PROTECTED]>: > > > Is there anything like Servlet Listener in django,python? > > not easily if you use mod_python, because for every apache thread a new > python instance i

Re: Vote to support dreamhost mod_python

2007-05-06 Thread Graham Dumpleton
On May 4, 9:17 pm, "Marc Fargas Esteve" <[EMAIL PROTECTED]> wrote: > One module I saw someday on my list of new packages on Debian: > > from apt-cache show apache2-mpm-itk > Description: multiuser MPM for Apache 2.2 > The ITK Multi-Processing Module (MPM) works in about the same way as the > cla

Re: Curious error with Session Variables

2007-05-09 Thread Graham Dumpleton
Try reenabling PHP, but delve into the PHP setup and disable the loading of the PHP mhash module first. There have been cases where the PHP mhash module has clashed in some way with the Python md5 hash modules and caused the Python module to give back incorrect results. This may have an effect on

Re: mod_python without httpd.conf?

2007-05-18 Thread Graham Dumpleton
On May 19, 4:48 am, Daniel Ellison <[EMAIL PROTECTED]> wrote: > On Friday 18 May 2007 14:06:48 [EMAIL PROTECTED] wrote: > > > I've tried googling for this for days without success. I'm looking for > > a way to deploy a django app on amod_pythonenabled server to which I > > do not have httpd.conf a

Re: mod_python without httpd.conf?

2007-05-19 Thread Graham Dumpleton
On May 19, 9:04 pm, Daniel Ellison <[EMAIL PROTECTED]> wrote: > On Friday 18 May 2007 21:32:33 Graham Dumpleton wrote: > > > This will all only work if the web site administrator has also set: > > > AllowOverride FileInfo > > > for the directory containing th

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread Graham Dumpleton
What is important to understand with Apache is that there is a parent process, which effectively acts as a supervisor process, and the child processes which actually accept and handle requests. When one uses 'restart' with the traditional 'apachectl' management command, it only kills off and resta

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread Graham Dumpleton
emory > leak, though I've run ab a couple of times (1000 requests, 100 > concurrency) and the memory footprint never seems to increase very > much. What version of mod_python are you using? Graham > On May 29, 10:29 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > &g

Re: Django, shared hosting memory limits and memory optimization

2007-05-29 Thread Graham Dumpleton
On May 30, 1:52 pm, chrominance <[EMAIL PROTECTED]> wrote: > > BTW, if you run 'ldd' on the mod_python.so file from the Apache > > modules directory, does it use Python as a shared library or is there > > no reference to libpython2.?.so at all, meaning it is embedded with in > > mod_python.so? Wha

Re: Django, shared hosting memory limits and memory optimization

2007-06-02 Thread Graham Dumpleton
On Jun 3, 5:40 am, chrominance <[EMAIL PROTECTED]> wrote: > Epilogue: it looks like the major culprit behind my skyrocketing > memory usage was indeed my failure to properly restart all the apache > processes; it looks like the parent process was still storing debug > info from when I had DEBUG=Tr

Re: Django, shared hosting memory limits and memory optimization

2007-06-02 Thread Graham Dumpleton
x27;t using any Python modules which have a dependency on doc strings being present. Graham On Jun 3, 8:41 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Jun 3, 5:40 am, chrominance <[EMAIL PROTECTED]> wrote: > > > Epilogue: it looks like the major culprit behind my s

Re: Linux django_settings_module problem

2007-09-10 Thread Graham Dumpleton
Did you export the environment variables after you sent them. export PYTHONPATH export DJANGO_SETTINGS_MODULE Graham On Sep 11, 2:14 pm, johnny <[EMAIL PROTECTED]> wrote: > Trying to run standalone python script that uses django orm. > Something wrong with path setup to execute this python

Re: SOMETIMES mod_python error

2007-09-11 Thread Graham Dumpleton
On Sep 11, 8:27 pm, Arnold Chen <[EMAIL PROTECTED]> wrote: > Dear all, > > I am experiencing some situation that is very strange. the development > site ishttp://alberta.design97.com > > This site is django-powered, it is up sometimes, on some computers, > you can visit this site for a preview, if

Re: Linux django_settings_module problem

2007-09-11 Thread Graham Dumpleton
Yep. This is also a common problem when people move to mod_python and don't reference through site package name. Thereby needing to add both parent and site directories to PythonPath directive in Apache configuration. Graham On Sep 11, 10:57 pm, johnny <[EMAIL PROTECTED]> wrote: > Only works whe

Re: mod_python memory consumption and tuning issues

2007-09-13 Thread Graham Dumpleton
On Sep 13, 6:18 pm, omat <[EMAIL PROTECTED]> wrote: > Hi, > > This is more of a python / mod_python configuration issue, but there > had been some discussions on this list ([1]), and django-users is > where I feel home, so I am posting here. Sorry. > > I am running 7 Django sites with an Apache +

Re: django & trac on the same lighttpd?

2007-09-13 Thread Graham Dumpleton
On Sep 14, 1:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I did it on Apache with mod-python. The problem I ran into was that I > couldn't deploy Django to the root of my site and still serve up other > content. I ended up having trac and my Django site sitting in > subdirectories, /t

Re: apache authorization with django

2007-09-19 Thread Graham Dumpleton
On Sep 19, 3:05 am, Robin Becker <[EMAIL PROTECTED]> wrote: > I find I can use django users and groups to authorize apache locations and > directories using a modified version of modpython.py(I just hacked it to check > for required groups). > > I have some difficulties with this simple scheme. >

Re: Django alongside other web apps

2007-09-19 Thread Graham Dumpleton
You need two separate VirtualHost definitions, one for each site. You only have one. The ServerName directive in each VirtualHost should match the respective site name. Graham On Sep 19, 7:37 pm, tonybanjo <[EMAIL PROTECTED]> wrote: > I'm configuring a new server that needs to run a standard web

Re: apache authorization with django

2007-09-19 Thread Graham Dumpleton
On Sep 19, 10:05 pm, Robin Becker <[EMAIL PROTECTED]> wrote: > Graham Dumpleton wrote: > > On Sep 19, 3:05 am, Robin Becker <[EMAIL PROTECTED]> wrote: > >> I find I can use django users and groups to authorize apache locations and > >> directories using a

Re: apache authorization with django

2007-09-19 Thread Graham Dumpleton
On Sep 19, 10:18 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > OK my code looks like the standard django/contrib/auth/modpython.py the > > patch is > > > *** > > *** 39,44 > > --- 38,54 > > ># check the pas

Re: Django deployment options

2007-09-19 Thread Graham Dumpleton
On Sep 20, 8:03 am, "Peter Baumgartner" <[EMAIL PROTECTED]> wrote: > On 9/19/07, Steve Potter <[EMAIL PROTECTED]> wrote: > > > I currently have a dedicated server running a Cpanel installation with > > several virtual hosts. I would like to install Django on this server > > and as far as I can t

Re: apache authorization with django

2007-09-19 Thread Graham Dumpleton
On Sep 19, 10:46 pm, Robin Becker <[EMAIL PROTECTED]> wrote: > Graham Dumpleton wrote: > > . > > >>> In 2.0 there seems no way to provide another > >>> authorizer without writing an apache module. > >> Correct. > > > Who

Re: apache authorization with django

2007-09-19 Thread Graham Dumpleton
On Sep 20, 8:39 am, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> wrote: > On 9/19/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > Not properly though. > > Indeed -- the auth handler has always been of "works-for-me" quality; > I don'

Re: Django deployment options

2007-09-19 Thread Graham Dumpleton
On Sep 20, 12:16 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 20-Sep-07, at 12:23 AM, Steve Potter wrote: > > > I'm already quite sure I don't want to install mod_python on the > > existing Apache after reading all of the warnings about using the same > > Apache to serve static documents

Re: Django deployment options

2007-09-19 Thread Graham Dumpleton
On Sep 20, 10:28 am, Steve Potter <[EMAIL PROTECTED]> wrote: > > Django can be run fine under Apache 1.3 using mod_wsgi. > > > The only issue is whether they do really allow you to add additional > > Apache modules to the installation. > > > Graham > > This is interesting... It is possible to in

Re: Django deployment options

2007-09-19 Thread Graham Dumpleton
On Sep 20, 12:52 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 20-Sep-07, at 8:09 AM, Graham Dumpleton wrote: > > > All those warnings about using the same Apache to serve static > > documents as Django are generally totally meaningless to the average > > use

Re: apache authorization with django

2007-09-20 Thread Graham Dumpleton
On Sep 20, 7:13 pm, Robin Becker <[EMAIL PROTECTED]> wrote: > Graham Dumpleton wrote: > > On Sep 20, 8:39 am, "Jacob Kaplan-Moss" <[EMAIL PROTECTED]> > > wrote: > >> On 9/19/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > >>&

Re: MEDIA_URL and the trailing slash (and a broken pipe or two)

2007-09-20 Thread Graham Dumpleton
On Sep 20, 3:53 pm, Dave Lowe <[EMAIL PROTECTED]> wrote: > I'm running into issues with the MEDIA_URL and that cursed trailing > slash. Here's what the documentation says about MEDIA_URL: > > "Note that this should have a trailing slash if it has a path > component." Good examples given > are:htt

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-24 Thread Graham Dumpleton
On Sep 25, 8:44 am, "Ramiro Morales" <[EMAIL PROTECTED]> wrote: > On 9/24/07, Steve Potter <[EMAIL PROTECTED]> wrote: > > > [...] > > But when I > > tried to load the site I still received a 500 error and the apache > > error log had the following: > > > mod_wsgi (pid=5070): Exception occurred wit

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-24 Thread Graham Dumpleton
On Sep 25, 3:26 pm, Steve Potter <[EMAIL PROTECTED]> wrote: > On Sep 24, 6:16 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > > > > Are you sure that the user Apache is running as has permissions > > > to read directories/files under the m

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-25 Thread Graham Dumpleton
On Sep 26, 3:59 am, Steve Potter <[EMAIL PROTECTED]> wrote: > > This sort of odd error can sometimes come up if you have chosen names > > for directories/modules which clash with standard Python module names. > > > Where you have in your WSGI script file for mod_wsgi something like: > > > sys.pat

Re: Help with httpd.conf for mod_wsgi and media directory

2007-09-29 Thread Graham Dumpleton
What version of Apache are you using? The ordering or rule evaluation in Apache 1.3 is actually based on order of LoadModule/AddModule lines in Apache configuration as at code level can't define the ordering dependencies between modules. BTW, if you comment out the WSGIScriptAlias directive, can

Re: Help with httpd.conf for mod_wsgi and media directory

2007-09-30 Thread Graham Dumpleton
On Sep 30, 12:42 pm, Steve Potter <[EMAIL PROTECTED]> wrote: > On Sep 29, 6:58 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > What version of Apache are you using? The ordering or rule evaluation > > in Apache 1.3 is actually based on order of LoadMod

Re: sharing django on production and dev

2007-09-30 Thread Graham Dumpleton
On Sep 29, 1:18 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 28-Sep-07, at 11:16 PM, Milan Andric wrote: > > > Is there some standard practice on a machine that has production code > > running in mod_python but also has developers running their django- > > python web server? Is that disc

Re: Mac OS X 10.4 + Python 2.4.3 + Django + Apache2 + mod_python

2007-10-04 Thread Graham Dumpleton
On Oct 4, 6:35 pm, dstuart <[EMAIL PROTECTED]> wrote: > Just a quick note to say mod_wsgi does support Apache 2 from the site: > > "The mod_wsgi package can be compiled for and used with either Apache > 1.3, 2.0 or 2.2 on UNIX systems (including Linux), as well as Windows. > Either the single thre

Re: IOError: Client read error (Timeout?)

2007-10-06 Thread Graham Dumpleton
The way mod_python reads request content is a bit broken and can screw up in various ways, albeit rarely. This may be another example to add to the existing ones. The other known examples are: http://issues.apache.org/jira/browse/MODPYTHON-212 http://issues.apache.org/jira/browse/MODPYTHON-23

Re: ImportError: No module named django.core.handlers.modpython

2007-10-06 Thread Graham Dumpleton
On Oct 7, 2:41 pm, Aaron <[EMAIL PROTECTED]> wrote: > I am using Django version 0.97 (latest development version), Python > 2.5, Apache 2.0.61 and mod_python 3.3.1. > > I am getting the following mod_python error: > --- > Traceback (mos

Re: IOError: Client read error (Timeout?)

2007-10-08 Thread Graham Dumpleton
aemon modes. For production sites mod_wsgi is more than capable and it shouldn't be seen as only useful for development environments. Graham > trey > > On Oct 6, 7:01 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > The way mod_python reads request content is

Re: Authenticating static content when not using mod_python

2007-10-16 Thread Graham Dumpleton
On Oct 16, 11:58 pm, AndyB <[EMAIL PROTECTED]> wrote: > Hi folks, > > Am I right in thinking the only way to do is this under CGI etc. is to > either: > > 1. To use raw HTTP authentication > or > 2. To pipe all content through Python by reading the file in and > serving it from a view Can you exp

Re: apache2 + mod_python vhosts conflict

2007-10-16 Thread Graham Dumpleton
Hmmm, I have been trying to track down what is behind this one for a while. I only do this as someone who knows about mod_python and not as a Django user, so dependent on people trying things and giving feedback. Although someone else suggested PythonInterpreter directive, you are already doing t

Re: apache2 + mod_python vhosts conflict

2007-10-16 Thread Graham Dumpleton
On Oct 17, 12:18 pm, Wiley <[EMAIL PROTECTED]> wrote: > > 1. Why are you using: > > > PythonPath "['/usr/lib/python2.5/site-packages/django'] + sys.path" > > > It seems awfully odd that you would be adding django package directory > > to sys.path explicitly. > > A friend of mine set it up this way

Re: apache2 + mod_python vhosts conflict

2007-10-17 Thread Graham Dumpleton
On Oct 17, 5:38 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 17-Oct-07, at 7:31 AM, Wiley wrote: > > > Kenneth and Bob, the PythonInterpreter thing was the first thing I > > checked (because it was in the official docs) if you notice I have > > different PythonInterpreters already set in

Re: runfcgi - complete lack of joy.

2007-10-17 Thread Graham Dumpleton
I am always quite amazed at the horrible rewrite rules that people often seem to have to resort to, to get fastcgi solutions working, if that is they get them working. FWIW, you might want to instead look at mod_wsgi as configuration is a lot simpler and it will work with Apache 1.3 server on Mac

Re: What is happening with mod_python

2007-10-17 Thread Graham Dumpleton
On Oct 18, 8:33 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 10/17/07, Michael Newman <[EMAIL PROTECTED]> wrote: > ... > > > > > ImportError: No module named django.core.handlers.modpython > > ... > > my conf file is a basic: > > > > > SetHandler python-program > > PythonHandler dja

Re: Authenticating static content when not using mod_python

2007-10-18 Thread Graham Dumpleton
there may be more appropriate ways in Django for yielding it as the result so it isn't read into memory all at the same time. Graham > Andy > > On Oct 16, 11:46 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > On Oct 16, 11:58 pm, AndyB <[EMAIL PROTECTED]>

Re: apache2 + mod_python vhosts conflict

2007-10-20 Thread Graham Dumpleton
te in > > apache... > > > I hope that this might be a help to any other web dev newbies out > > there :) > > > Thanks to everyone who posted ideas on this thread! > > > On Oct 17, 6:27 pm, Graham Dumpleton <[EMAIL PROTECTED]> > > wrote: > > >

Re: Anyone running mod_python for Python 2.5 on Mac OS X?

2007-10-20 Thread Graham Dumpleton
A few quick comments, although you may have so mucked up your installations you might be better reinstalling everything, include the OS from scratch. :-) 1. Why are you using Apache 2.1. The Apache 2.1 stream was a developmental version stream, it should not be used for production use. You should

Re: Anyone running mod_python for Python 2.5 on Mac OS X?

2007-10-20 Thread Graham Dumpleton
Ulf Kronman wrote: > Hi Graham, > thanks for your answer. Here some replies to your comments. > > > A few quick comments, although you may have so mucked up your > > installations you might be better reinstalling everything, include the > > OS from scratch. :-) > > Uh-uh. So this implies that the

Re: Anyone running mod_python for Python 2.5 on Mac OS X?

2007-10-21 Thread Graham Dumpleton
On Oct 22, 5:36 am, Ulf Kronman <[EMAIL PROTECTED]> wrote: > Hi all, > > > Have you made any try on Python 2.5 together with mod_python? > > I'll reply to myself here, since I finally got mod_python to work with > Python 2.5! > > Here's how I did it: > -- > > Installed Pyth

Re: Anyone running mod_python for Python 2.5 on Mac OS X?

2007-10-21 Thread Graham Dumpleton
On Oct 22, 3:01 pm, Ulf Kronman <[EMAIL PROTECTED]> wrote: > Hi Graham, > > > You should not need to set PYTHONHOME and doing so could cause a lot > > of problems because if you now run /usr/bin/python2.3 directly or > > indirectly, it will pick up the wrong installed version of Python > > modules

Re: Django writing self-generated files to disk

2007-10-22 Thread Graham Dumpleton
On Oct 23, 6:27 am, Scott SA <[EMAIL PROTECTED]> wrote: > Hi, > > I have a django instance running under mod-python/apache and am having > trouble with a user that has a poor-quality connection. The task is to > generate a tab-delim report (rather lengthy one) of which we've been > writing-to-r

Re: Django writing self-generated files to disk

2007-10-22 Thread Graham Dumpleton
On Oct 23, 10:26 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Oct 23, 6:27 am, Scott SA <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I have a django instance running under mod-python/apache and am having > > trouble with a user that has a

Re: Scaling the server

2007-10-23 Thread Graham Dumpleton
On Oct 24, 5:13 am, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote: > Hi guys, > > A few weeks ago I had problems with my dedicated server, it was > stucking twice or more times a week. After some digging, I solve the > problem updating the mysqldb lib version. The server goes ok almost > all the

Re: Scaling the server

2007-10-24 Thread Graham Dumpleton
On Oct 25, 7:19 am, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote: > Hi Graham! > > > What percentage of requests are actually yielding static pages? > > People often too quickly run to lighttpd thinking it will somehow > > magically solve all their problems, but if the bulk of the requests > >

Re: Scaling the server

2007-10-25 Thread Graham Dumpleton
On Oct 25, 11:32 pm, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote: > > Do you know which process in particular though are using up all the > > memory? > > The `top` command tells me that apache is taking the most slice of the > RAM. When I reach the high loads, there is between 40-50 subprocess

Re: LimitRequestBody 102400

2007-10-25 Thread Graham Dumpleton
On Oct 26, 11:15 am, Roboto <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm trying to stop people from uploading like 3mb images and crashing > the server. I think, think, that to some degree my limiters are > working. In my apache config I've set LimitRequestBody 307200. That > should be about 30

Re: Scaling the server

2007-10-26 Thread Graham Dumpleton
On Oct 26, 6:38 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-10-26 at 05:06 +, simonbun wrote: > > > Well, I have another server available now ;) > > > And you're using it for serving static content I hope? Your previous > > setup with Apache serving everything with KeepAl

Re: Setting up your django project outside the document root

2007-10-27 Thread Graham Dumpleton
On Oct 28, 4:59 am, "Adam D." <[EMAIL PROTECTED]> wrote: > I am a newbie. > > Everywhere I read about django, it suggests to put your django project > outside of your servers document root. > > My question is if my document root is '/var/www/vhosts/domain.com/ > doc_root' and I put my project ou

Re: Scaling the server

2007-10-27 Thread Graham Dumpleton
On Oct 27, 2:33 am, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote: > Hi again Simon, > > > @ Michel: I think the best approach is to use a separate IP for Lighttpd to > > listen on, but it should be equally easy to have Lighttpd listen on > > for example port 81. > > Hum, understood. The last on

Re: Problem with memcached after many hits

2007-10-30 Thread Graham Dumpleton
On Oct 30, 7:51 pm, web-junkie <[EMAIL PROTECTED]> wrote: > Hi, > I have a weird problem where I think memcached or caching in general > might be the cause. I discovered it during testing the site with > http_load. After a certain amount of fetches, or hits, to the server, > the site does not re

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-10-30 Thread Graham Dumpleton
I am actually surprised you got mod_python working in the first place unless you did some fiddles you haven't mentioned here. We have been sorting out issues with mod_python and mod_wsgi not working on Leopard over on the mod_python list. Short answer is, try editing src/Makefile in mod_python af

Re: serving django project through ssl and without ssl at the same time?!

2007-10-30 Thread Graham Dumpleton
On Oct 31, 6:50 am, lmierzej <[EMAIL PROTECTED]> wrote: > > maybe I should just create two apache virtual hosts pointing to the > > same django project? > > According to instructions herehttp://www.djangosnippets.org/snippets/240/ > there should be two different apache virtual hosts pointing to th

Re: the old django-in-a-subdirectory problem

2007-10-30 Thread Graham Dumpleton
On Oct 31, 1:15 am, [EMAIL PROTECTED] wrote: > This issue has come up for many people in many places, but most of the > threads seem old, and none of the solutions proposed has helped. > > I have a django installation in a subdirectory of a site, like > so:www.mysite.com/django. At first I notice

Re: MacOS X Leopard + mod_pyton + mysql problems

2007-10-30 Thread Graham Dumpleton
On Oct 31, 6:57 am, crudolph <[EMAIL PROTECTED]> wrote: > Yeah - I downloaded fromhttp://sourceforge.net/projects/mysql-python, > unzipped and ran python setup.py build and then install. > > Under Leopard (10.5) apache2 is 4-way, so it is running in 64-bit > mode. I haven't been able to figure out

Re: serving django project through ssl and without ssl at the same time?!

2007-10-30 Thread Graham Dumpleton
On Oct 31, 10:23 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 10/30/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > ... > > > In mod_wsgi, although the application entry point is defined twice, > > mod_wsgi will recognise that they are on 80/443

Re: serving django project through ssl and without ssl at the same time?!

2007-10-30 Thread Graham Dumpleton
tation. :-) Graham On Oct 31, 10:58 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 10/30/07, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > > > > > On Oct 31, 10:23 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > ... > > &

Re: the old django-in-a-subdirectory problem

2007-10-30 Thread Graham Dumpleton
On Oct 31, 1:58 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-10-30 at 22:20 +0000, Graham Dumpleton wrote: > > On Oct 31, 1:15 am, [EMAIL PROTECTED] wrote: > > > This issue has come up for many people in many places, but most of the > > >

Re: serving django project through ssl and without ssl at the same time?!

2007-10-31 Thread Graham Dumpleton
r SSLVerifyClient, as it talks about difference between SSLVerifyClient at VirtualHost context vs directory context. Graham > Thank you for your advises and time! > > On 30 Paź, 22:59, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > On Oct 31, 6:50 am, lmierzej &

Re: djangoAMF authentication, requests aren't carrying user credential

2007-11-01 Thread Graham Dumpleton
On Oct 30, 9:22 pm, "Tiger Uppercut" <[EMAIL PROTECTED]> wrote: > Hi, > > I wasn't sure whether this was a djangoAMF issue or django, so apologies for > the double posting. > > I'm having trouble using djangoAMF to communicate between my flex UI and my > django site, django_wrapper. > > - My dja

Re: IOError: Client read error (Timeout?)

2007-11-03 Thread Graham Dumpleton
FWIW, it has been noted as an issue with mod_python that using IOError directly isn't good, although for slightly other reasons. https://issues.apache.org/jira/browse/MODPYTHON-92 That it isn't using IOError correctly in as much as no errno is present adds to why it shouldn't do as it is. It

Re: Reloading only one Python interpreter with Apache

2007-11-03 Thread Graham Dumpleton
On Nov 4, 2:27 am, Sander Dijkhuis <[EMAIL PROTECTED]> wrote: > On our Apache server, we're hosting multiple Django projects. The > Apache configuration is like this: > > PythonAutoReload Off > > ServerName first.example.com > > SetHandler python-program > Set

Re: Large streaming uploads (#2070) doesn't work for me at all

2007-11-03 Thread Graham Dumpleton
You might at least try mod_python 3.3.1 instead of the older mod_python 3.2.10. The newer version fixes a lot of problems including memory leaks. Graham On Nov 4, 10:48 am, Eugene Morozov <[EMAIL PROTECTED]> wrote: > Hello, > I've applied patch from #2070 and I have disastrous result. I'm trying

Re: djangoAMF authentication, requests aren't carrying user credential

2007-11-03 Thread Graham Dumpleton
ever > reached, even if this method is called twice > this_user = auth.authenticate(email=this_email,password=raw_password) # > using custom EmailBackend > if this_user is not None: > auth.login(request,this_user) > return True > else: >

Re: IOError: Client read error (Timeout?)

2007-11-03 Thread Graham Dumpleton
FWIW, the Python 2.5 source code violates its own documentation if this is in some way meant to define a standard. That is, in zip and bz2 modules, they raise IOError's with only a string value and no errno. Graham On Nov 4, 9:32 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: >

Re: Reloading only one Python interpreter with Apache

2007-11-04 Thread Graham Dumpleton
On Nov 4, 4:26 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 03-Nov-07, at 8:57 PM, Sander Dijkhuis wrote: > > > I often have to reload one project because I've updated the code. > > Currently, I use `/etc/init.d/apache2 reload` > > why dont you do apache2ctl graceful? As far as the conse

Re: Large streaming uploads (#2070) doesn't work for me at all

2007-11-04 Thread Graham Dumpleton
On Nov 5, 10:33 am, Eugene Morozov <[EMAIL PROTECTED]> wrote: > On 4 нояб, 07:05, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > > > You might at least try mod_python 3.3.1 instead of the older > > mod_python 3.2.10. The newer version fixes a lot of problems includi

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 8:37 am, stranger <[EMAIL PROTECTED]> wrote: > Hello I am using Fedora 7. I am using Django for the first time. I > want the django to run on port 80. so that : > > http://localhost/mysite/ > > should retreive the Django dafault page. I have installed mod_python > and imported it into ht

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 9:30 am, stranger <[EMAIL PROTECTED]> wrote: > Hello Graham, > >Just followed the same instructions as u said. > > > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > Pyt

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 9:37 am, stranger <[EMAIL PROTECTED]> wrote: > Yes my settings.py file is in the place you specified. > > I have restarted the apache: /etc/init.d/httpd restart > > I think u r right. Apache dont have right to read that module. Please > specify me how to give access to apche to my mysit

Re: Is Django Threaded Fastcgi Safe?

2007-11-05 Thread Graham Dumpleton
The latest roundup on thread safety of Django is that although it was not designed for thread safety initially, the only known multithreading problem has been fixed some time back. As such, numerous people do run it in Apache worker MPM for UNIX and on winnt MPM on Windows, both of which are multi

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 9:13 am, stranger <[EMAIL PROTECTED]> wrote: > Thank you Graham for the fast reply Could you please elaborate a > little since i am new to django. > > > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE mysite.settin

Re: mod_python: problem with http.conf

2007-11-05 Thread Graham Dumpleton
On Nov 6, 9:57 am, stranger <[EMAIL PROTECTED]> wrote: > Thank alot Graham. To which user, I must grant access? > > I know the command chmod.. and I traversed to mysite directory and > chmod -R 755 * > > still no change. Hmmm, I saw that example in the document I referred to and thought it was a

<    4   5   6   7   8   9   10   11   >