[modwsgi] Re: mod_wsgi needs a logo

2009-06-06 Thread gert
On Jun 6, 1:51 pm, gert gert.cuyk...@gmail.com wrote: On Jun 6, 5:38 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/6/6 gert gert.cuyk...@gmail.com: Suggestions ? Because if Graham makes it, it will end up something like a debian logo, that looks like crap, literally

[modwsgi] Re: mod_wsgi needs a logo

2009-06-06 Thread gert
On Jun 6, 2:44 pm, gert gert.cuyk...@gmail.com wrote: On Jun 6, 1:51 pm, gert gert.cuyk...@gmail.com wrote: On Jun 6, 5:38 am, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/6/6 gert gert.cuyk...@gmail.com: Suggestions ? Because if Graham makes it, it will end up

[modwsgi] Re: mod_wsgi needs a logo

2009-06-05 Thread Graham Dumpleton
2009/6/6 gert gert.cuyk...@gmail.com: Suggestions ? Because if Graham makes it, it will end up something like a debian logo, that looks like crap, literally How about: http://www.thegreenhead.com/imgs/main/real-cobra-scorpion-whiskey.jpg

[modwsgi] Re: mod_wsgi fails to attach requested deamon

2009-05-31 Thread Graham Dumpleton
Read: http://code.google.com/p/modwsgi/wiki/ConfigurationIssues about permission denied problem. Haven't had a chance to read rest of email yet, will do so later when have time. Graham 2009/6/1 Evgeny evgeny.fad...@gmail.com: Hi Graham, Thank you for your answer. I've tried to do what

[modwsgi] Re: mod_wsgi dont let apache 2 start

2009-05-22 Thread Graham Dumpleton
2009/5/22 Carlos Aboim abo...@gmail.com: Hi everyone, I want to deploy a django powered website. So I 've installed apache2, python2.6 and django 1.0 for db I will you sqlite3 for now. I 've arranged everything up as instrutions that came with packages. Module is in the modules folder,

[modwsgi] Re: mod_wsgi segfault with sqlite3

2009-04-24 Thread Kevin Dangoor
On Thu, Apr 23, 2009 at 11:24 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: Do you have mod_cache modules loaded into Apache. These apparently can have a symbol conflict with sqlite libraries. Disable mod_cache modules in Apache and see if problem goes away. That did the trick!

[modwsgi] Re: mod_wsgi segfault with sqlite3

2009-04-24 Thread Kevin Dangoor
On Fri, Apr 24, 2009 at 12:05 AM, Chris McDonough chr...@plope.com wrote: Ftr, I haven't seen this behavior, but I have noticed via other travails that the libaprutil library loads the sqlite library, so it's likely that your SQLite version needs to be the same one as is loaded into Apache.

[modwsgi] Re: mod_wsgi segfault with sqlite3

2009-04-23 Thread Graham Dumpleton
Do you have mod_cache modules loaded into Apache. These apparently can have a symbol conflict with sqlite libraries. Disable mod_cache modules in Apache and see if problem goes away. Search for 'mod_cache sqlite' in Google and see discussions of issue. Eg:

[modwsgi] Re: mod_wsgi django url issue

2009-04-22 Thread Birkin James Diana
Graham, ...When mounting at a sub URL of site, that sub URL should not be a part of the patterns in urls.py... ...That you may have had to do this with mod_python prior to Django 1.0 ... Well, my urlpatterns as listed in my original post do work with Django 1.0 mod_python (they *do*

[modwsgi] Re: mod_wsgi django url issue

2009-04-22 Thread Birkin James Diana
On Apr 22, 2009, at 8:49 AM, Birkin James Diana wrote: ...I came up with a solution that works... Rereading some docs, I came across Joshua's comment at the bottom of: http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango ...and remembered I had read that before -- so the URL_PREFIX

[modwsgi] Re: mod_wsgi django url issue

2009-04-21 Thread Graham Dumpleton
Haven't read mail properly, but first guess is as follows. When mounting at a sub URL of site, that sub URL should not be a part of the patterns in urls.py. Ie., this: urlpatterns = patterns('', ( r'^studio/admin/(.*)', admin.site.root ), ( r'^studio/',

[modwsgi] Re: mod_wsgi on Mac Os X Leopard

2009-04-05 Thread Graham Dumpleton
2009/4/5 Darryl Cousins darryljcous...@gmail.com: Which particular problem is that now? Can still help you out as use MacOS X myself so know the various problems. Graham Hi Graham, Thanks. I had earlier had problems installing isolated Python on Leopard which I describe here [1].

[modwsgi] Re: mod_wsgi on Mac Os X Leopard

2009-04-05 Thread Graham Dumpleton
2009/4/5 Darryl Cousins darryljcous...@gmail.com: On Sun, Apr 5, 2009 at 6:20 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/4/5 Darryl Cousins darryljcous...@gmail.com: Which particular problem is that now? Can still help you out as use MacOS X myself so know the various

[modwsgi] Re: mod_wsgi on Mac Os X Leopard

2009-04-04 Thread Graham Dumpleton
2009/4/4 Darryl Cousins darryljcous...@gmail.com: On Sat, Apr 4, 2009 at 7:51 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/4/4 Darryl Cousins darryljcous...@gmail.com: Hi, Thank you your reply and your suggestions. On Sat, Apr 4, 2009 at 6:22 PM, Graham Dumpleton

[modwsgi] Re: mod_wsgi on Mac Os X Leopard

2009-04-04 Thread Graham Dumpleton
2009/4/5 Darryl Cousins darryljcous...@gmail.com: On Sat, Apr 4, 2009 at 8:41 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/4/4 Darryl Cousins darryljcous...@gmail.com: On Sat, Apr 4, 2009 at 7:51 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/4/4 Darryl

[modwsgi] Re: mod_wsgi on Mac Os X Leopard

2009-04-03 Thread Graham Dumpleton
2009/4/4 Darryl Cousins darryljcous...@gmail.com: Hi, I've dug around the posts on this issue but still fail to achieve. Python-2.5.2 compiled and installed using: HOME=/usr/local PYHOME=$HOME/Python VERSION=2.5.2 PACKAGE=Python-$VERSION ./configure --prefix=$PYHOME/$PACKAGE \      

[modwsgi] Re: mod_wsgi on Mac Os X Leopard

2009-04-03 Thread Darryl Cousins
Hi, Thank you your reply and your suggestions. On Sat, Apr 4, 2009 at 6:22 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/4/4 Darryl Cousins darryljcous...@gmail.com: Hi, I've dug around the posts on this issue but still fail to achieve. Python-2.5.2 compiled and installed

[modwsgi] Re: mod_wsgi in django, import errors

2009-04-01 Thread Graham Dumpleton
Once I get 2.4 and 3.0 out of the way I will be revisiting the documentation and trying to work out what to do about it all. I agree that it needs to be more step wise and offers lots more warnings, but to do it properly you almost need a mini book on deploying it for each different major

[modwsgi] Re: mod_wsgi in django, import errors

2009-03-31 Thread Tim Valenta
Hello Graham-- Late last night before falling asleep I realized that this could be the only explanation, and suddenly realized that-- in fact-- the very .wsgi file I wanted to test was called django.wsgi, which I had renamed to django.py for something of a unit-test. Therefore, my import was

[modwsgi] Re: mod_wsgi in django, import errors

2009-03-31 Thread Tim Valenta
Yes, I did. Now that you mention it, I am not sure why I felt I needed to do that. ... Something must have prompted me to do it, but I cannot remember now. It must have had something to do with seeing the following example line: os.environ['DJANGO_SETTINGS_MODULE'] =

[modwsgi] Re: mod_wsgi in django, import errors

2009-03-31 Thread Graham Dumpleton
2009/4/1 Tim Valenta tonightslasts...@gmail.com: Yes, I did.  Now that you mention it, I am not sure why I felt I needed to do that. ... Something must have prompted me to do it, but I cannot remember now.  It must have had something to do with seeing the following example line:

[modwsgi] Re: mod_wsgi in django, import errors

2009-03-31 Thread Graham Dumpleton
Hmmm, that crappy setup information is in: http://code.djangoproject.com/wiki/django_apache_and_mod_wsgi I'll fix it up. :-( Graham 2009/4/1 Graham Dumpleton graham.dumple...@gmail.com: 2009/4/1 Tim Valenta tonightslasts...@gmail.com: Yes, I did.  Now that you mention it, I am not sure

[modwsgi] Re: mod_wsgi in django, import errors

2009-03-31 Thread Graham Dumpleton
2009/4/1 Tim Valenta tonightslasts...@gmail.com: Unless I've made a mistake in my thinking, I believe that the IntegrationWithDjango page also states that you should put that ./apache/ directory in your apache conf (http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango)

[modwsgi] Re: mod_wsgi in django, import errors

2009-03-31 Thread Graham Dumpleton
2009/4/1 Tim Valenta tonightslasts...@gmail.com: So then to clear up a little confusion from my end.. is there any need to be putting that ./apache/ directory in the apache conf at all, Yes, there must be a Directory container as previously showed for the 'apache' directory. This is required

[modwsgi] Re: mod_wsgi in django, import errors

2009-03-31 Thread Graham Dumpleton
2009/4/1 Tim Valenta tonightslasts...@gmail.com: One final hurrah for the import error.  So I've gotten everything running this evening (thanks to direction given previously).  The last thing I'm noting is this: My setup isn't particularly strange, in my opinion, yet I needed to add one more

[modwsgi] Re: mod_wsgi in django, import errors

2009-03-31 Thread Graham Dumpleton
2009/4/1 Tim Valenta tonightslasts...@gmail.com: Hm... yes, I had read that before, but I hadn't immediately caught the reference to the fact that /usr/local/django was itself the document root.  I (personally) would suggest making a slight alteration to that documentation, simply to state

[modwsgi] Re: mod_wsgi in django, import errors

2009-03-30 Thread Graham Dumpleton
2009/3/31 Tim Valenta tonightslasts...@gmail.com: Hello all-- I've been casually trying to get mod_wsgi working in a Ubuntu 8.10 sever, to run even the simplest of Django test projects.  So far, I've had no dice getting the example Django wsgi scripts to work. Most simply, I'm having an

[modwsgi] Re: Mod_wsgi and Apache virtual hosts

2009-03-28 Thread Duncan
On Mar 25, 5:11 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/3/26 Duncan caphec...@gmail.com: On Mar 24, 7:28 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/3/25 Duncan caphec...@gmail.com: Are there any issues that I might run into with 300+ virtual

[modwsgi] Re: Mod_wsgi and Apache virtual hosts

2009-03-28 Thread Graham Dumpleton
2009/3/28 Duncan caphec...@gmail.com: On Mar 25, 5:11 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/3/26 Duncan caphec...@gmail.com: On Mar 24, 7:28 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/3/25 Duncan caphec...@gmail.com: Are there any issues

[modwsgi] Re: Mod_wsgi and Apache virtual hosts

2009-03-25 Thread AJ Coon
On Wed, Mar 25, 2009 at 8:03 PM, Duncan caphec...@gmail.com wrote: On Mar 24, 7:28 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/3/25 Duncan caphec...@gmail.com: we use suexec for PHP applications already. Curious, and totally off topic, why are you running PHP using

[modwsgi] Re: Mod_wsgi and Apache virtual hosts

2009-03-25 Thread Graham Dumpleton
2009/3/26 Duncan caphec...@gmail.com: On Mar 24, 7:28 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/3/25 Duncan caphec...@gmail.com: Are there any issues that I might run into with 300+ virtual hosts, Are you currently using mod_python with 300+ virtual hosts with a

[modwsgi] Re: Mod_wsgi and Apache virtual hosts

2009-03-24 Thread Graham Dumpleton
2009/3/25 Duncan caphec...@gmail.com: I've been reading up on mod_wsgi as a replacement for mod_python; it looks like it'll be able to suit my user's needs, but I want to make sure *before* I do the rollout. From what I've read it looks like mod_wsgi works well with Apache virtual hosts and I

[modwsgi] Re: mod_wsgi 2.3 downloads hits 10000

2009-03-18 Thread Garito
Congratulations Graham! On Mar 17, 5:15 am, Graham Dumpleton graham.dumple...@gmail.com wrote: I know this doesn't take into consideration Linux distributions, Windows binary downloads or subversion checkouts, but mod_wsgi 2.3 source tar ball downloads for mod_wsgi Google code site has hit

[modwsgi] Re: mod_wsgi 2.3 downloads hits 10000

2009-03-18 Thread Clodoaldo Pinto Neto
2009/3/17 Graham Dumpleton graham.dumple...@gmail.com: I know this doesn't take into consideration Linux distributions, Windows binary downloads or subversion checkouts, but mod_wsgi 2.3 source tar ball downloads for mod_wsgi Google code site has hit 1. I never had a doubt it would be a

[modwsgi] Re: mod_wsgi packages for solaris on http://mirror.opencsw.org/testing.html

2009-03-10 Thread Graham Dumpleton
2009/3/11 rupert.thurner rupert.thur...@gmail.com: hi, if somebody is using mod_wsgi on solaris, there are now test packages for opencsw on http://mirror.opencsw.org/testing.html. Thanks, have made a link to the repository in wiki page about installation on Solaris. Graham

[modwsgi] Re: mod_wsgi and trac plugins interfering in a strange way: see agilo

2009-03-10 Thread Graham Dumpleton
2009/3/11 rupert.thurner rupert.thur...@gmail.com: (why) could it be that mod_wsgi used for many trac instances, one enabled with agilo interferes? see: http://groups.google.com/group/agilo/browse_thread/thread/62d296608f871c1e Seems there has been a followup to say it was a known agilo

[modwsgi] Re: mod_wsgi is very slow compared to mod_python for my Trac installation

2009-03-08 Thread Graham Dumpleton
2009/3/9 Thomas Allen thomasmal...@gmail.com: Having read many accounts suggesting improved performance and other incentives for switching to mod_wsgi, I did. I believe that my setup is fairly standard, and I can't determine the cause of this slowness. Using mod_python, a Trac page loads in

[modwsgi] Re: mod_wsgi is very slow compared to mod_python for my Trac installation

2009-03-08 Thread Thomas Allen
Hi Graham, In response to your suggestions: * I've only run mod_wsgi with mod_python off and vice-versa, so that couldn't be an issue. * The Trac installation is only a few days old with maybe twenty wiki pages and fifteen tickets. * Load testing on this seems to be a waste of time. I'm using

[modwsgi] Re: mod_wsgi and SIGTERM or SIGKILL

2009-02-23 Thread Dalius Dobravolskas
On Sun, Feb 22, 2009 at 11:20 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: Try patch or just use version from 2.X branch out of subversion: http://code.google.com/p/modwsgi/wiki/ChangesInVersion0204 I have tried to use this version. SIGTERM still does not work. Only SIGKILL. --

[modwsgi] Re: mod_wsgi and SIGTERM or SIGKILL

2009-02-23 Thread Graham Dumpleton
2009/2/23 Dalius Dobravolskas dalius.dobravols...@gmail.com: On Sun, Feb 22, 2009 at 11:20 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: Try patch or just use version from 2.X branch out of subversion: http://code.google.com/p/modwsgi/wiki/ChangesInVersion0204 I have tried to use

[modwsgi] Re: mod_wsgi and SIGTERM or SIGKILL

2009-02-23 Thread Dalius
 http://code.google.com/p/modwsgi/wiki/ChangesInVersion0204 I have tried to use this version. SIGTERM still does not work. Only SIGKILL. Correction! SIGTERM works with 2.X and daemon mode. It is not working with embedded mode only. My head works bad today... Regards, Dalius

[modwsgi] Re: mod_wsgi and SIGTERM or SIGKILL

2009-02-23 Thread Graham Dumpleton
2009/2/24 Dalius dalius.dobravols...@gmail.com: http://code.google.com/p/modwsgi/wiki/ChangesInVersion0204 I have tried to use this version. SIGTERM still does not work. Only SIGKILL. Correction! SIGTERM works with 2.X and daemon mode. It is not working with embedded mode only. If it

[modwsgi] Re: mod_wsgi and SIGTERM or SIGKILL

2009-02-22 Thread Dalius Dobravolskas
Hello, Graham, OK. I will use modwsgi group. Answers to your questions: My wsgi program executes pypy-c program in separate process. I was trying to use both embedded and daemon modes. Config is very simple: VirtualHost * ServerName py.sandbox.lt ServerAdmin dal...@sandbox.lt

[modwsgi] Re: mod_wsgi template for pinax

2009-02-12 Thread pablo platt
On Thu, Feb 12, 2009 at 5:49 AM, Graham Dumpleton graham.dumple...@gmail.com wrote: 2009/2/12 Jannis Leidel jan...@leidel.info: For someone who does not know pinax except that it somehow builds on Django, can someone give me a couple of line summary of what it does. More importantly as

[modwsgi] Re: mod_wsgi template for pinax

2009-02-11 Thread Jannis Leidel
For someone who does not know pinax except that it somehow builds on Django, can someone give me a couple of line summary of what it does. More importantly as far as working out what may be a good configuration, how long do average requests it handles take. Is the nature of the application

[modwsgi] Re: mod_wsgi template for pinax

2009-02-11 Thread Graham Dumpleton
2009/2/12 Jannis Leidel jan...@leidel.info: For someone who does not know pinax except that it somehow builds on Django, can someone give me a couple of line summary of what it does. More importantly as far as working out what may be a good configuration, how long do average requests it

[modwsgi] Re: mod_wsgi template for pinax

2009-02-10 Thread Ariel Mauricio Nunez Gomez
WSGIDaemonProcess pinax threads=1 processes=25 python-path=/home/user/ pinax-env/lib/python2.5/site- packages WSGIProcessGroup pinax Just so Graham does not hate me for giving bad advice: If you are not using any 'thread unsafe' python lib outside the Pinax dependencies (like GeoDjango)

[modwsgi] Re: mod_wsgi template for pinax

2009-02-10 Thread Graham Dumpleton
For reference, further detail on aspects of this question at: http://groups.google.com/group/pinax-users/browse_frm/thread/8cbc9857c1b9c4b2?q=mod_wsgi I'll respond later in more detail. Graham 2009/2/11 pablo.pl...@gmail.com pablo.pl...@gmail.com: Hi, I'm studying pinax and trying to

[modwsgi] Re: mod_wsgi template for pinax

2009-02-10 Thread Graham Dumpleton
2009/2/11 Graham Dumpleton graham.dumple...@gmail.com: For reference, further detail on aspects of this question at: http://groups.google.com/group/pinax-users/browse_frm/thread/8cbc9857c1b9c4b2?q=mod_wsgi I'll respond later in more detail. It may take me a bit longer to get to this than

[modwsgi] Re: mod_wsgi template for pinax

2009-02-10 Thread Ariel Mauricio Nunez Gomez
It may take me a bit longer to get to this than had hoped. Daddy day care today and baby demanding a lot of attention and hasn't adjusted to timezone after getting back form holidays which is making it all the more fun. Sounds like fun! For someone who does not know pinax except that it

[modwsgi] Re: mod_wsgi template for pinax

2009-02-10 Thread Ariel Mauricio Nunez Gomez
What is GeoDango and how does that come into it? What are the multithreading issues in GeoDango? GeoDjango is django.contrib.gis This could be part of your problem -- it should be `threads=1`. This is because GEOS is not a thread safe library, and the serialization to WKT code in particular

[modwsgi] Re: mod_wsgi template for pinax

2009-02-10 Thread Graham Dumpleton
2009/2/11 Ariel Mauricio Nunez Gomez ingenieroar...@gmail.com: What is GeoDango and how does that come into it? What are the multithreading issues in GeoDango? GeoDjango is django.contrib.gis This could be part of your problem -- it should be `threads=1`. This is because GEOS is not a

[modwsgi] Re: mod_wsgi template for pinax

2009-02-10 Thread Ariel Mauricio Nunez Gomez
The prefork MPM is only relevant if you are running in embedded mode. If using mod_wsgi daemon mode for WSGI application, where you are separately controlling number of processes/threads for the daemon process group, doesn't really matter. If have separate requirement to also run mod_php,

[modwsgi] Re: mod_wsgi with mod_rewrite question.

2009-01-23 Thread vince
oh thanks a lot. that's what i want and didn't even need mod_rewrite. just wondering is there anyway to make mod_rewrite work with mod_wsgi? i guess i may need it later. mod_wsgi's WSGIScriptAlias seems doesn't work after mod_rewrite -vince On Jan 22, 10:08 am, Graham Dumpleton

[modwsgi] Re: mod_wsgi with mod_rewrite question.

2009-01-23 Thread Graham Dumpleton
2009/1/24 vince lapcc...@gmail.com: oh thanks a lot. that's what i want and didn't even need mod_rewrite. just wondering is there anyway to make mod_rewrite work with mod_wsgi? i guess i may need it later. mod_wsgi's WSGIScriptAlias seems doesn't work after mod_rewrite One can use

[modwsgi] Re: mod_wsgi with mod_rewrite question.

2009-01-21 Thread Graham Dumpleton
2009/1/22 vince lapcc...@gmail.com: in short for the apache conf WSGIScriptAlias / /var/www/devel/testwsgi.py http://localhost/abc/def would become GET /abc/def inside testwsgi.py and with WSGIScriptAlias /test /var/www/devel/testwsgi.py http://localhost/test/abc/def would become

[modwsgi] Re: mod_wsgi with mod_rewrite question.

2009-01-18 Thread Graham Dumpleton
2009/1/19 vince lapcc...@gmail.com: i am trying to get mod_rewrite work with mod_wsgi. however the rewrite seems to work according the log but then WSGIScriptAlias did catch it. when i have this config in apache WSGISocketPrefix /private/var/run/wsgi WSGIDaemonProcess devel user=www

[modwsgi] Re: mod_wsgi messing Python from fink with system python on Mac Osx 10.5.6

2009-01-11 Thread Alan
Thanks a lot dear Graham. I indeed had read the 2nd link before but not with the due attention because I don't why I was looking at WSGIPythonPath. Thank you very much. Cheers, Alan On Sun, Jan 11, 2009 at 20:55, Graham Dumpleton graham.dumple...@gmail.comwrote: See:

[modwsgi] Re: mod_wsgi and number of processes/threads

2008-12-22 Thread Graham Dumpleton
2008/12/23 meppum mmep...@gmail.com: Okay, lets see if I have this right... If i have 2 apache servers and each apache server can have 25 threads that's 50 threads total. If mod_wsgi is running in daemon mode does that mean that each apache thread will spawn a mod_wsgi daemon? No. The

[modwsgi] Re: mod_wsgi and number of processes/threads

2008-12-22 Thread Graham Dumpleton
2008/12/23 meppum mmep...@gmail.com: Good thing I asked. So lets say I'm using nginx for my static file requests, and that only dynamic requests are fed to apache and that keepalives are OFF. Would you recommend against setting the apache process/thread settings equal to that of the mod_wsgi

[modwsgi] Re: mod_wsgi and number of processes/threads

2008-12-21 Thread Graham Dumpleton
2008/12/22 meppum mmep...@gmail.com: What about apache mpm settings? Any examples on what they should be for say the default WSGIDaemonProcess setting of 15 threads? Thanks. The defaults for standard Apache source distribution are: # worker MPM # StartServers: initial number of server

[modwsgi] Re: mod_wsgi Django: Stack trace does not show in log files or gets sent by email

2008-12-18 Thread Nimrod A. Abing
On Thu, Dec 18, 2008 at 3:18 PM, Stefan Wallner montodes...@googlemail.com wrote: Lets make sure that mod_wsgi logging is working at all. If you add before that code: import sys print sys.stderr, ABOUT TO ERROR Does that appear in Apache error log? Duh, should have though about

[modwsgi] Re: mod_wsgi Django: Stack trace does not show in log files or gets sent by email

2008-12-17 Thread Stefan Wallner
Sorry that haven't really responded about this, has been a hectic couple of weeks with a 1st birthday party and me starting to take over daddy day care duties a few days a week. Not a problem, family first. Anyway, what version of mod_wsgi are you using? 2.3 Are you using VirtualHost

[modwsgi] Re: mod_wsgi Django: Stack trace does not show in log files or gets sent by email

2008-12-17 Thread Graham Dumpleton
2008/12/18 Stefan Wallner montodes...@googlemail.com: On Dec 16, 1:36 am, Robert Coup robert.c...@koordinates.com wrote: If Django is catching the error (ie. if DEBUG=True then you get a fancy formatted error page), then its a Django problem that its not being emailed to you. mod-wsgi

[modwsgi] Re: mod_wsgi configuration question

2008-12-17 Thread Graham Dumpleton
2008/12/17 wmiller walter.mil...@gmail.com: A scheme which just tries to do textual substitution of 'print' in code before evaling/compiling it is not a good idea. this is the approach. For code between % % tags, first replace 'print' with 'printwrite', then compile, then pass to eval with

[modwsgi] Re: mod_wsgi configuration question

2008-12-16 Thread wmiller
The templating is working as designed and it's pretty responsive subjectively speaking.  For those who might be interested, I'll post some code and benchmarks after taking some time to clean up the code and figure out a safe way to use eval within the template. You should avoid 'eval',

[modwsgi] Re: mod_wsgi configuration question

2008-12-16 Thread Dan Fairs
here the the print statement is modified to just return output to the browser. Also, variables surrounded by { } are returned to the browser based on the variables in locals(). I'm still holding out hope that there'll be a way to make eval safe or maybe figure out a better alternative to

[modwsgi] Re: mod_wsgi configuration question

2008-12-16 Thread gert
On Dec 16, 4:17 pm, wmiller walter.mil...@gmail.com wrote: % def fib(n):     a, b = 0, 1     while b n:         print(str(b) + , )         a, b = b, a+b     return b-a var = fib(100) % brbr {var} Suggestion, def fib(n): a, b = 0, 1 while b n: print(str(b) + , )

[modwsgi] Re: mod_wsgi configuration question

2008-12-16 Thread wmiller
Suggestion, def fib(n):      a, b = 0, 1      while b n:          print(str(b) + , )          a, b = b, a+b      return b-a  var = fib(100) %          brbr          {var} % Would make it python compatible, wsgi compatible, unit test compatible, import compatible, eval

[modwsgi] Re: mod_wsgi configuration question

2008-12-16 Thread Graham Dumpleton
2008/12/17 wmiller walter.mil...@gmail.com: The templating is working as designed and it's pretty responsive subjectively speaking. For those who might be interested, I'll post some code and benchmarks after taking some time to clean up the code and figure out a safe way to use eval

[modwsgi] Re: mod_wsgi Django: Stack trace does not show in log files or gets sent by email

2008-12-15 Thread Stefan Wallner
Are your development and production server configurations identical? Maybe you are just doing some things differently on your production server? I diffed the settings file both for local development and production use, but nothing seems different than what is supposed to (i.e. database

[modwsgi] Re: mod_wsgi Django: Stack trace does not show in log files or gets sent by email

2008-12-15 Thread Robert Coup
If Django is catching the error (ie. if DEBUG=True then you get a fancy formatted error page), then its a Django problem that its not being emailed to you. mod-wsgi doesn't get involved in that process at all. The only time you'd see an error/traceback in the apache logs should be if there's a

[modwsgi] Re: mod_wsgi configuration question

2008-12-15 Thread Graham Dumpleton
2008/12/15 gert gert.cuyk...@gmail.com: lol :) Anyway wsgi is not that bad, it just different and makes your code look better. Ok the auto reload script thing is not as flexible as php yet but Graham is working on a PythonPathMatch and a Have not the foggiest what you are talking about

[modwsgi] Re: mod_wsgi configuration question

2008-12-15 Thread Graham Dumpleton
2008/12/16 wmiller walter.mil...@gmail.com: It doesn't need C code and can be just as fast as normal WSGI application. Am too busy at the moment to explain further, maybe later today. Graham quick update, I got it working as you suggested: Action pyp-scripts /pyp-interpreter

[modwsgi] Re: mod_wsgi configuration question

2008-12-14 Thread gert
See i was not the only one thinking this way :-) http://www.csh.rit.edu/~jon/projects/pip/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups modwsgi group. To post to this group, send email to

[modwsgi] Re: mod_wsgi configuration question

2008-12-14 Thread Graham Dumpleton
2008/12/14 gert gert.cuyk...@gmail.com: See i was not the only one thinking this way :-) http://www.csh.rit.edu/~jon/projects/pip/ Presumably abandoned when they realised that it wasn't perhaps a useful thing after all. Last updated: October 21, 2003 Graham

[modwsgi] Re: mod_wsgi configuration question

2008-12-11 Thread gert
another approach i was thinking is the import approach something like import apache and import cgi but then import wsgi and import php where php module defines your template specification like php.echo for example. Its just a bit weird that the wsgi guy's put there heads together to redesign the

[modwsgi] Re: mod_wsgi configuration question

2008-12-10 Thread Graham Dumpleton
2008/12/10 wmiller [EMAIL PROTECTED]: Is it possible configure mod_wsgi to recognize WSGI application script files without explicitly declaring the application object within each script file? If not, is there a elegant/crude work-around? Along the same lines, if that were possible, it

[modwsgi] Re: mod_wsgi configuration question

2008-12-10 Thread gert
So let me get this straight, you are going to rewrite all this parsing cashing ch*t in python, just you can have your own templates ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups modwsgi group. To post to this

[modwsgi] Re: mod_wsgi configuration question

2008-12-10 Thread wmiller
On Dec 10, 5:32 am, Graham Dumpleton [EMAIL PROTECTED] wrote: I have been asked something similar a number of times. I don't know why but it is always to me direct and not on the mailing list. Not sure if it means the others were embarrassed about their yearnings for something more like PHP

[modwsgi] Re: mod_wsgi configuration question

2008-12-10 Thread wmiller
On Dec 10, 1:52 pm, gert [EMAIL PROTECTED] wrote: So let me get this straight, you are going to rewrite all this parsing cashing ch*t in python, just you can have your own templates ? That's part of the motivation. The rest is the desire to have the option to choose pure WSGI application

[modwsgi] Re: mod_wsgi configuration question

2008-12-10 Thread gert
Am I the only one here that thinks this is a bad approach (i said approach not idea) I mean you go from mod_wsgi and make it act as a cripple mod_scgi with GIL stuff and no stdout to transform it into mod_php using a interpreter that execute instructions as fast as a elephant doing backstrokes in

[modwsgi] Re: mod_wsgi configuration question

2008-12-10 Thread wmiller
On Dec 10, 2:24 pm, gert [EMAIL PROTECTED] wrote: Am I the only one here that thinks this is a bad approach (i said approach not idea) I mean you go from mod_wsgi and make it act as a cripple mod_scgi with GIL stuff and no stdout to transform it into mod_php using a interpreter that execute

[modwsgi] Re: mod_wsgi configuration question

2008-12-10 Thread Graham Dumpleton
2008/12/11 gert [EMAIL PROTECTED]: You just ask Graham where in his code he finished with all the caching prefetching process management. And you change the tiny little wsgi part of it. Note that, Graham actually has a translator around his neck because of all the c code he has been writen

[modwsgi] Re: mod_wsgi configuration question

2008-12-10 Thread gert
Sure assembler is also possible :-) When Graham mind is in binary mode you can see on a egg scan his brainwaves resembling IEEE 802.11 :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups modwsgi group. To post to

[modwsgi] Re: mod_wsgi configuration question

2008-12-09 Thread gert
On Dec 9, 8:47 pm, wmiller [EMAIL PROTECTED] wrote: Is it possible configure mod_wsgi to recognize WSGI application script files without explicitly declaring the application object within each script file?  If not, is there a elegant/crude work-around? Along the same lines, if that were

[modwsgi] Re: mod_wsgi configuration question

2008-12-09 Thread gert
On the other hand i also think it can be solved with WSGIScriptAliasMatch ^/wsgi-scripts/([^/]+) /web/wsgi-scripts/$1.wsgi What would be a more Graham approved solution, for security reasons :-) http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIScriptAliasMatch

[modwsgi] Re: mod_wsgi configuration question

2008-12-09 Thread Clodoaldo Pinto Neto
2008/12/9 wmiller [EMAIL PROTECTED]: Is it possible configure mod_wsgi to recognize WSGI application script files without explicitly declaring the application object within each script file? If not, is there a elegant/crude work-around? Along the same lines, if that were possible, it would

[modwsgi] Re: mod_wsgi and .pyc files

2008-12-01 Thread Brett Hoerner
On Mon, Dec 1, 2008 at 2:17 PM, Matt Craighead [EMAIL PROTECTED] wrote: Works fine if I give it the .py file, but I prefer to ship my software as .pyc files rather than .py files. Is there a way to tell mod_wsgi to load a precompiled .pyc script? The docs say, In all ways that the

[modwsgi] Re: mod_wsgi and .pyc files

2008-12-01 Thread Brett Hoerner
On Mon, Dec 1, 2008 at 3:31 PM, Matt Craighead [EMAIL PROTECTED] wrote: Yes, I'm aware that pyc files can be decompiled -- but this does at least strip comments from the code, slightly speed up loading, and a few other minor things. Do you really have many comments or much code in your wsgi

[modwsgi] Re: mod_wsgi and number of processes/threads

2008-11-18 Thread Graham Dumpleton
2008/11/19 Rob Hudson [EMAIL PROTECTED]: Is there a general rule of thumb that can guide a person on what numbers might need to be put for: WSGIDaemonProcess processes=X threads=Y I'm curious if knowing what your requests per [time period] is if that can guide you what to put here. I

[modwsgi] Re: mod_wsgi and number of processes/threads

2008-11-18 Thread Rob Hudson
On Tue, Nov 18, 2008 at 2:51 PM, Graham Dumpleton [EMAIL PROTECTED] wrote: Hmmm, even 1 hits per day is not a large site. Yeah, that's why I said larger to keep it relative. But doing the math and averaging out hits evenly, that's 1 request every 11 seconds or so... definitely not large at

[modwsgi] Re: mod_wsgi / Django integration problems

2008-10-28 Thread Graham Dumpleton
Two changes required to what you have done. See below. 2008/10/28 Giles Thomas [EMAIL PROTECTED]: Hi all, I'm trying to get mod_wsgi working with Django (1.0), and I've hit a problem that I can't seem to be able to solve. It's simple enough that I'm sure the solution is obvious and I'm

[modwsgi] Re: mod_wsgi / Django integration problems

2008-10-28 Thread Graham Dumpleton
2008/10/28 Mike Beaumont [EMAIL PROTECTED]: Your problem is this. You're prepending SCRIPTNAME to PATHINFO each time so it adds another /admin for every successive request. What I suggest doing is adding 3 Location directives in your apache configuration for /admin /foo and /bar. Not sure

[modwsgi] Re: mod_wsgi / Django integration problems

2008-10-28 Thread Graham Dumpleton
Okay, here it is. All you need in the Apache configuration file is: WSGIScriptAliasMatch ^/(admin|foo|bar)(/.*)?$ /Users/grahamd/Sites/echo.wsgi/$1$2 You do not need to make any changes to the WSGI script file. Just use: import os, sys sys.path.append('/usr/local/django')

[modwsgi] Re: mod_wsgi / Django integration problems

2008-10-28 Thread Giles Thomas
Graham, Many thanks for this and for all the details in your other emails - this solution works perfectly! Cheers, Giles Graham Dumpleton wrote: Okay, here it is. All you need in the Apache configuration file is: WSGIScriptAliasMatch ^/(admin|foo|bar)(/.*)?$

[modwsgi] Re: mod_wsgi / Django integration problems

2008-10-27 Thread Mike Beaumont
Your problem is this. You're prepending SCRIPTNAME to PATHINFO each time so it adds another /admin for every successive request. What I suggest doing is adding 3 Location directives in your apache configuration for /admin /foo and /bar. But if you want it done the way you have set up, create some

[modwsgi] Re: mod_wsgi Python 2.6 win32 binary

2008-10-17 Thread m0nonoke
Any news? On Oct 10, 2:53 am, Graham Dumpleton [EMAIL PROTECTED] wrote: 2008/10/9 m0nonoke [EMAIL PROTECTED]: Any chance of adding a python 2.6 windows binary? Adal, any chance of this? Thanks. Graham --~--~-~--~~~---~--~~ You received this message

[modwsgi] Re: mod_wsgi Python 2.6 win32 binary

2008-10-09 Thread Graham Dumpleton
2008/10/9 m0nonoke [EMAIL PROTECTED]: Any chance of adding a python 2.6 windows binary? Adal, any chance of this? Thanks. Graham --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups modwsgi group. To post to this

[modwsgi] Re: Mod_wsgi

2008-10-02 Thread Graham Dumpleton
2008/10/2 Carlo Barrettara [EMAIL PROTECTED]: Hi Graham, My name is Carlo Barrettara, I'm a co-founder at a start-up company in the mobile space – Polar Mobile. First off, let me say we really appreciate the hard work you've put into mod_wsgi. We're using mod_wsgi for some of our back-end

<    1   2   3   4   5   >