Re: Difficulty getting Django working with Apache and mod_python

2008-10-21 Thread Graham Dumpleton
On Oct 22, 2:23 am, projecktzero <[EMAIL PROTECTED]> wrote: > On Oct 20, 4:17 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > > > > On Mon, Oct 20, 2008 at 5:15 PM, projecktzero <[EMAIL PROTECTED]>wrote: > > > I'm pretty new to Django. I'm having trouble getting my Django > > > app/web-site to

Re: Python on Windows re-using old .pyc files?

2008-10-21 Thread Graham Dumpleton
On Oct 21, 10:51 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Ulf Kronman schrieb:> I'm using Django trunk and I have set the > MaxRequestsPerChild 1 > > directive in httpd.conf. I'm running on Windows XP (sp3?). > > Here a guess: > > Apache creates several threads (or worker processes) and a

Re: Django on Apache (mod_python) administration cookie problem

2008-10-21 Thread Graham Dumpleton
On Oct 22, 10:52 am, "M.Ganesh" <[EMAIL PROTECTED]> wrote: > Hi Daniel, > > I am also facing the same problem. I really can't understand the > technicalities of the solution offered in this thread. Since you seemed > to have solved the problem, can you please give a little more details on > how

Re: Apache Django 15 Second Refresh

2008-10-22 Thread Graham Dumpleton
On Oct 23, 3:01 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Oct 22, 2008 at 11:31 AM, GPSGuy <[EMAIL PROTECTED]> wrote: > > > Option One: Reloading Wrapper > > I now that there is caching going on, but I am still not sure why.  I > > did find a work around, though I would still like

Re: Setting up Django on CentOS5 with flup and fastcgi

2008-10-22 Thread Graham Dumpleton
On Oct 23, 2:00 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > that would be great but i can't allow my users access to http.conf as > i said i am a shared reseller so i am offering django to my clients. Apache/mod_wsgi can be used in a similar vein to FASTCGI, with user code running in s

Re: Authenticating static files against Django Auth with FastCGI

2008-10-23 Thread Graham Dumpleton
Look at the Django source code for what the mod_python authentication handler does and for the bit where it is interacting with Django user database, do the same. The mod_wsgi documentation also gives an example in the section dealing with authentication provider. http://code.google.com/p/modws

Re: Django on Apache (mod_python) administration cookie problem

2008-10-24 Thread Graham Dumpleton
ng PHP mhash) That one I can't help you with as know nothing about PHP. I presume there is a configuration file for PHP somewhere you need to edit and comment out load line for PHP mhash module. Graham > Thanks in advance > Regards Ganesh > Graham Dumpleton wrote:Disabling the PHP

Re: why not django's default server?

2008-10-25 Thread Graham Dumpleton
On Oct 26, 12:32 pm, "Adam Fast" <[EMAIL PROTECTED]> wrote: > It's worth mentioning as well that the Django "built-in" dev server is > single-threaded the last time I heard, and with transferring large > files / the application itself, I see a lot of your users getting > "busy signals" so to spe

Re: Handling Subdomain Requests

2008-10-26 Thread Graham Dumpleton
On Oct 27, 2:00 pm, killer barney <[EMAIL PROTECTED]> wrote: > I'm not too familiar with how to handle subdomain requests on django. > If i have test.example.com, is this somethign I'm supposed to find in > the urls.py?? Or is this done in the middleware? > > I'm really confused about this, so y

Re: Handling Subdomain Requests

2008-10-27 Thread Graham Dumpleton
On Oct 27, 6:43 pm, Aljosa Mohorovic <[EMAIL PROTECTED]> wrote: > On Oct 27, 5:52 am, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > A single instance of the web application would then handle each > > virtual host. > > is this something that is po

Re: Django along with PHP - avoiding Apache crashes

2008-10-27 Thread Graham Dumpleton
On Oct 28, 4:01 am, Giles Thomas <[EMAIL PROTECTED]> wrote: > Hi all, > > We're implementing some new stuff for our website in Django; > unfortunately our site currently uses PHP quite heavily (for MediaWiki, > Wordpress, phpBB and the like), and when we tried deploying the first > cut of the solu

Re: when deploying a real site django says i dont have access to python eggs cache

2008-10-27 Thread Graham Dumpleton
On Oct 28, 3:05 pm, geezer <[EMAIL PROTECTED]> wrote: > hi, > > when deploying to a real site, django says i dont have writable access > to a python eggs cache, when i redirect the python eggs cache, placing > it into a new writable directory the browser crashes, exactly what are > the steps to

Re: How to get site's root path in Django

2008-10-28 Thread Graham Dumpleton
On Oct 28, 2:24 am, "yuanyun.ken" <[EMAIL PROTECTED]> wrote: > Hi, all great Django users and developers, I have a little problem. > To make @login_required work, > I have to configure those in settings.py: > root_url = '/root_url/' > LOGIN_URL = root_url + '/login/' > LOGOUT_URL =  root_url + '

Re: Django along with PHP - avoiding Apache crashes

2008-10-28 Thread Graham Dumpleton
On Oct 28, 11:58 pm, Giles Thomas <[EMAIL PROTECTED]> wrote: > Graham, > > Thank you again for the help - as you might have guessed, my separate > question that you answered on themod_wsgilist was because I'd decided > to try out the WSGI solution to the problem first. > > What's very strange is

Re: How to setup django-apache-mod_wsgi without killing existing php site?

2008-10-30 Thread Graham Dumpleton
On Oct 31, 10:14 am, Håkan Waara <[EMAIL PROTECTED]> wrote: > Hi folks, > > I'm in the process of for the first time deploying a django site that   > (unfortunately) needs to share its Apache with an existing PHP site. > > I've been reading a bunch about mod_wsgi and in many places there are   >

Re: Multiple Copies of Libraries, Apache/mod_wsgi and Performance

2008-10-30 Thread Graham Dumpleton
On Oct 31, 10:04 am, "Naitik Shah" <[EMAIL PROTECTED]> wrote: > I'm serving a few sites from a tiny VPS, and I'm quite happy with a > Apache/mod_wsgi setup. I've managed to reduce the Apache footprint by having > only a few necessary modules loaded. mod_wsgi is setup to use daemon mode > and sta

Re: appeal for help with #9232

2008-10-30 Thread Graham Dumpleton
The OP, if they don't need mod_python should also disable it and not load it into Apache at the same time as mod_wsgi. The mod_python versions is quite old and buggy and mod_python can interfere with mod_wsgi especially causing certain configuration options for mod_wsgi to not work. The mod_wsgi v

Re: Multiple Copies of Libraries, Apache/mod_wsgi and Performance

2008-10-30 Thread Graham Dumpleton
On Oct 31, 4:09 pm, "Naitik Shah" <[EMAIL PROTECTED]> wrote: > > Also indicate how much traffic each site gets and whether any would > > potentially be idle for periods, as can then look at inactivity > > timeouts etc. > > As embarrassing as it sounds, I don't have good numbers available yet. Th

Re: HttpRequest with chunked encoding is not buffered

2008-10-31 Thread Graham Dumpleton
[EMAIL PROTECTED] wrote: > Hello, > I'm trying to receive a possibly large XML message via HttpRequest > (POST method) with chunked encoding. However, when I send a response, > I found out (using Wireshark) that the response is being sent before > the whole POST request body is available. I expe

Re: Multiple Copies of Libraries, Apache/mod_wsgi and Performance

2008-10-31 Thread Graham Dumpleton
On Nov 1, 8:44 am, "Naitik Shah" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 31, 2008 at 1:01 PM, Naitik Shah <[EMAIL PROTECTED]> wrote: > > On Thu, Oct 30, 2008 at 10:58 PM, Graham Dumpleton < > > [EMAIL PROTECTED]> wrote: > > >> In respec

Re: Multiple Copies of Libraries, Apache/mod_wsgi and Performance

2008-10-31 Thread Graham Dumpleton
On Nov 1, 10:06 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 1, 8:44 am, "Naitik Shah" <[EMAIL PROTECTED]> wrote: > > > > > On Fri, Oct 31, 2008 at 1:01 PM, Naitik Shah <[EMAIL PROTECTED]> wrote: > > > On Thu, Oct 30, 2008

Re: Response is sent before post body arrives

2008-10-31 Thread Graham Dumpleton
On Nov 1, 8:22 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using chunked transfer encoding and i send a post http request to > my Django application. But when I try to read the post body, it's not > there (request.POST.keys() returns []). according to Wireshark, I send > the

Re: Is there a way to host serveral django projects under a single virtual host

2008-10-31 Thread Graham Dumpleton
On Nov 1, 4:54 am, Håkan Waara <[EMAIL PROTECTED]> wrote: > 31 okt 2008 kl. 16.43 skrev ilyail3: > > > > > > > hello people, Is there a way to host several django projects under a > > single virtual host? > > I know this is possible with mod_php with wildcards as server alias > > > and later map

Re: HttpRequest with chunked encoding is not buffered

2008-11-01 Thread Graham Dumpleton
t-Length header wouldn't be set. Thus why you are seeing no input. Graham > On Fri, Oct 31, 2008 at 11:50 PM, Graham Dumpleton > > <[EMAIL PROTECTED]> wrote: > > > [EMAIL PROTECTED] wrote: > >> Hello, > >> I'm trying to receive a possibly large

Re: Deploying multiple django applications in a single apache server

2008-11-01 Thread Graham Dumpleton
Just be aware that by default mod_python assigns sub interpreters per name based virtual host and doesn't take into consideration the listener port. Therefore, if having two listener ports on the same host name, the same sub interpreter will be used for both, which means that Django instances will

Re: touching wsgi file

2008-11-02 Thread Graham Dumpleton
On Nov 3, 7:09 am, belred <[EMAIL PROTECTED]> wrote: > is touchingt the wsgi file supposed reload every file in the the > entire django project or just just reload the one wsgi file? If you are talking about the WSGI script file when using Apache/ mod_wsgi, it depends on how you have Apache/mod

Re: sharing a module level variable

2008-11-02 Thread Graham Dumpleton
On Nov 3, 2:03 am, belred <[EMAIL PROTECTED]> wrote: > On Nov 2, 3:29 am, Steve Holden <[EMAIL PROTECTED]> wrote: > > > > > belred wrote: > > > i have an wget event in a cron job.  the view does some processing > > > which involves calling external websites and databases (takes about 25 > > > se

Re: touching wsgi file

2008-11-02 Thread Graham Dumpleton
7; attribute is an Apache specific variable which indicates the target resource, which in this case just happens to be the WSGI script file. If you want code to be portable beyond mod_wsgi, this would need to be written differently. I'll elaborate on that more later if need to. The user that mod_ws

Re: touching wsgi file

2008-11-02 Thread Graham Dumpleton
On Nov 3, 12:31 pm, belred <[EMAIL PROTECTED]> wrote: > thanks for your detailed explanation.  i had to read it 3 times to try > to absorb everything :) i do not need to have the code be portable > beyond mod_wsgi.  if i'm following what you and steve have said and > pages you both pointed me to

Re: sharing a module level variable

2008-11-02 Thread Graham Dumpleton
On Nov 3, 11:53 am, belred <[EMAIL PROTECTED]> wrote: > On Nov 2, 2:58 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > > > On Nov 3, 2:03 am, belred <[EMAIL PROTECTED]> wrote: > > > > On Nov 2, 3:29 am, Steve Holden <[EMAIL PROTECTE

Re: Django on Apache (mod_python) administration cookie problem

2008-11-03 Thread Graham Dumpleton
On Nov 4, 5:08 pm, Dave Dash <[EMAIL PROTECTED]> wrote: > I am witnessing this issue using manage.py runserver. > > The only useful information I can give is this was working when I was > running .97 (or whatever was the trunk a few months back), I recently > upgraded to the latest trunk (~1.1)

Re: localhost host only webservices/authentication in general

2008-11-05 Thread Graham Dumpleton
On Nov 6, 11:24 am, craic <[EMAIL PROTECTED]> wrote: > with django, is it possible to restrict the calling host of particular > urls to be the localhost? > > namely, is there a way to restrict say a set of web services > implemented in django to be only accepted if they are the same domain > as

Re: FastCGI and Django as a continuously running server

2008-11-05 Thread Graham Dumpleton
On Nov 6, 4:00 pm, "DULMANDAKH Sukhbaatar" <[EMAIL PROTECTED]> wrote: > >  The one thing left that I'd like to do is set up Django to run > > continuously, even when there are no http requests.  My application > > runs a bunch of periodic background tasks in addition to serving up > > web conten

Re: Apache Segmentation Fault on succesful authentication

2008-11-06 Thread Graham Dumpleton
On Nov 7, 2:38 am, huw_at1 <[EMAIL PROTECTED]> wrote: > Hi all. I am having some real problems with this. I have an LDAP > authentication backend that I have hooked up to my app. Standalone it > appears to run fine. However when running it through my apache server > I am seeing alot of segmentat

Re: Django with Apache2 on Ubuntu

2008-11-08 Thread Graham Dumpleton
On Nov 8, 5:39 am, project2501 <[EMAIL PROTECTED]> wrote: > Hi, >   I got Django to work behind Apache2 with mod_python, but had some > questions for the experts. > > 1) Is there an easy way to log stdout without re-writing all my output > statements? What about python logging? Anything sent to

Re: Apache Segmentation Fault on succesful authentication

2008-11-08 Thread Graham Dumpleton
a340) >         libsepol.so.1 => /lib64/libsepol.so.1 (0x0039a300) > > To me everything matches up. I have had a few other suggestions such > as using strace. This however has so much detail in it is difficult to > trace anything in a multi-thread/child environment.

Re: apache and django

2008-11-10 Thread Graham Dumpleton
On Nov 10, 5:50 pm, "DULMANDAKH Sukhbaatar" <[EMAIL PROTECTED]> wrote: > > Ok.  But are the configuration lines any different or will they > > change.  If anyone has a good tutorial written could you please post > > it.  Also, What does this line mean ? > > SetEnv DJANGO_SETTINGS_MODULE mysite.s

Re: Apache Segmentation Fault on succesful authentication

2008-11-10 Thread Graham Dumpleton
thon as mod_wsgi only supports Python web application supporting WSGI interface, as nearly all do these days. The mod_python module provides its own framework for developing web applications as well. Graham > Many thanks > > Huw > > On Nov 8, 10:05 am, Graham Dumpleton <

Re: apache and django

2008-11-10 Thread Graham Dumpleton
; in my apache config.  Anyone see a problem?  I feel like it has to do > with > > PythonOption django.root / > > When I have this line in the config the admin site doesn't work.  When > I don't the admin works, but with no style sheet. > > On Nov 10, 7:19 pm,

Re: apache mod_wsgi/nginx config: different behaviors if www pre-pended

2008-11-12 Thread Graham Dumpleton
On Nov 13, 6:48 am, "Serdar T." <[EMAIL PROTECTED]> wrote: > Can someone offer advice on server deployment headaches involving > apache/mod_wsgi/nginx? I seem to be having two problems: > > 1) Apache/mod_wsgi correctly serves dynamic content from a test app > (located in a ~/public_html director

Re: Apache Segmentation Fault on succesful authentication

2008-11-12 Thread Graham Dumpleton
On Nov 12, 11:44 pm, huw_at1 <[EMAIL PROTECTED]> wrote: > echo '/usr/local/lib' >> /etc/ld.so.conf > > more /etc/ld.so.conf > > include ld.so.conf.d/*.conf > /usr/local/lib > > ldd /usr/local/bin/python > >         libpython2.5.so.1.0 => not found >         libpthread.so.0 => /lib64/libpthread.s

Re: Permission denied while using apache2

2008-11-12 Thread Graham Dumpleton
On Nov 12, 11:44 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > laspal wrote: > > hi, > > I am trying to create folder. > > here is the code: > > if not os.path.isdir(str(_user.username)): > >          os.mkdir(str(_user.username) ) > > filepathwithname = os.path.join(str(_user.username), file_na

Re: Apache Segmentation Fault on succesful authentication

2008-11-13 Thread Graham Dumpleton
  /lib64/ld-linux-x86-64.so.2 (0x0039a2c0) > > I still don't get why the library is being compiled in statically. > > On Nov 13, 12:11 am, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > On Nov 12, 11:44 pm, huw_at1 <[EMAIL PROTECTED

Re: Apache Segmentation Fault on succesful authentication

2008-11-13 Thread Graham Dumpleton
icle I am starting to wonder if mod_python just > includes this library statically by default. Still, thanks for all the > help so far. I really appreciate it. > > On Nov 13, 9:55 am, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > Because you have created the symlink for the

Re: mod_python setup on Apache virtual host

2008-11-15 Thread Graham Dumpleton
On Nov 15, 4:14 pm, "Chris Bai" <[EMAIL PROTECTED]> wrote: > Can anyone point to me a reference to setup mod_python on Apache virtual > host for Django? Or write something about it? > > I am able to run my app in Django development server. I am also able to set > up virtual host to display index

Re: mod_python setup on Apache virtual host

2008-11-15 Thread Graham Dumpleton
Are you setting ErrorDocument directives in Apache configuration? If you are then disable them and then actual error may not be masked. Have you looked in Apache error log for more information? Graham On Nov 16, 5:53 am, Chuck22 <[EMAIL PROTECTED]> wrote: > Here is what I tried. > > >     Doc

Re: Multithreaded Dev Server

2008-11-15 Thread Graham Dumpleton
On Nov 16, 4:40 pm, Chris <[EMAIL PROTECTED]> wrote: > I understand what you're saying. It's just unfortunate we're throwing > out the convenience of the dev server. > > What's up withhttp://code.djangoproject.com/ticket/3357? Looks like > this idea isn't new. Using daemon mode of mod_wsgi can

Re: Apache Segmentation Fault on succesful authentication

2008-11-17 Thread Graham Dumpleton
002b2d9ecba000) >         libc.so.6 => /lib64/libc.so.6 (0x2b2d9ef3d000) >         /lib64/ld-linux-x86-64.so.2 (0x0039a2c0) > > echo $LD_LIBRARY_PATH > > /usr/local/lib > > On Nov 14, 5:17 am, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > &

Re: GeoDjango in Ubuntu 8.10, Segmentation Fault

2008-11-18 Thread Graham Dumpleton
Based on comments in a separate thread, GeoDango may have issues with multithreaded configuration. Which Apache MPM was being used for each Apache version, prefork or worker? The worker MPM uses threads and so that could be the culprit. Graham On Nov 19, 10:43 am, GRoby <[EMAIL PROTECTED]> wrote

Re: configuring production server for static media

2008-11-19 Thread Graham Dumpleton
If: ADMIN_MEDIA_PREFIX = '/media/' means that static media URLs will all be prefixed with that, then wouldn't: root /home/user/public_html/mysite/public/media; need to be: root /home/user/public_html/mysite/public; This is because you have location '/' on nginx mapped to this directory

Re: serving static file via django

2008-11-19 Thread Graham Dumpleton
On Nov 20, 1:41 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > i know that django is not recommended to serve static content via > > django and the web server handler should be used for it. > > > also, the following method to serve static content in development env, >

Re: configuring production server for static media

2008-11-19 Thread Graham Dumpleton
ry list of what is actually in: /home/user/public_html/mysite/public /home/user/public_html/mysite/public/media would be useful as well. Graham > On Nov 19, 7:43 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > If: > > >   ADMIN_MEDIA_PREFIX = '/media/'

Re: configuring production server for static media

2008-11-19 Thread Graham Dumpleton
.dtd";> > http://www.w3.org/1999/xhtml"; lang="en-us" xml:lang="en- > us" > > > Log in | Django site admin > > > > > > > > > > > > >     >     >         > >         <<<>

Re: Apache Setup

2008-11-25 Thread Graham Dumpleton
On Nov 26, 3:32 pm, Django Newbie <[EMAIL PROTECTED]> wrote: > Hi Everybody, > > Django newbie here.  I'm trying to get it to work under apache with > mod_python on a freebsd server but running into problems.  I searched > the archives and found similar things, but I tried all the suggestions >

Re: pythonpath problem

2008-11-25 Thread Graham Dumpleton
On Nov 26, 5:13 pm, Chris Amico <[EMAIL PROTECTED]> wrote: > I have a handful of apps in that folder. I can add it to sys.path > using sys.path.insert(0, path) and they import fine after, but that > only lasts one session. How do I make it stick? That is what PythonPath directive is for. Graha

Re: pythonpath problem

2008-11-25 Thread Graham Dumpleton
mod_python are you using? Graham > On Nov 25, 10:29 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > On Nov 26, 5:13 pm, Chris Amico <[EMAIL PROTECTED]> wrote: > > > > I have a handful of apps in that folder. I can add it to sys.path > > > us

Re: pythonpath problem

2008-11-26 Thread Graham Dumpleton
either directory here. > > I'm using mod_python-3.2.8-3.1 I would strongly suggest you upgrade mod_python. Older versions have lots of issues with module importing. See: http://www.dscpl.com.au/wiki/ModPython/Articles/ModuleImportingIsBroken Graham > On Nov 25, 10:53 pm, Graham

Re: Project Setup and PYTHONPATH

2008-11-26 Thread Graham Dumpleton
On Nov 27, 1:06 am, Flo Ledermann <[EMAIL PROTECTED]> wrote: > Hi all, > > my name is flo, i am relatively new to django but would consider > myself an experienced web developer. I am sorry if this has been asked > hundreds of times, but after doing somewhat extensive research i still > would li

Re: Apache Setup

2008-11-26 Thread Graham Dumpleton
On Nov 27, 1:10 am, Django Newbie <[EMAIL PROTECTED]> wrote: > Graham Dumpleton wrote: > > > On Nov 26, 3:32 pm, Django Newbie <[EMAIL PROTECTED]> wrote: > > >> Hi Everybody, > > >> Django newbie here.  I'm trying to get it to work unde

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-26 Thread Graham Dumpleton
On Nov 27, 2:06 pm, Brian <[EMAIL PROTECTED]> wrote: > Hi everyone, > > Here's a questions I just posted on stackoverflow.com (because I like > that forum's layout) - but I thought posting it here might lead to > more / better coverage.  See:http://stackoverflow.com/questions/322694/ > > Multipl

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-26 Thread Graham Dumpleton
er be a problem? Graham > Is there any more information that would be helpful? > > Cheers & thank you, > Brian > > On Nov 26, 10:32 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > On Nov 27, 2:06 pm, Brian <[EMAIL PROTECTED]> wrote: > >

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-26 Thread Graham Dumpleton
anageable solution for you, but want to be clear on these things so know if will be or not and what configuration would need to be. Graham > On Nov 26, 11:31 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > On Nov 27, 3:17 pm, Brian <[EMAIL PROTECTED]> wrot

Re: Project Setup and PYTHONPATH

2008-11-27 Thread Graham Dumpleton
On Nov 28, 2:18 am, Flo Ledermann <[EMAIL PROTECTED]> wrote: > Graham, > > thanks for answering! it still feels odd comapred to the otherwise > wisely designed parts of django... adding a directory AND its parent > to a source path is something i have never experienced in any > framework, in any

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-27 Thread Graham Dumpleton
Since haven't seen a response to my other questions and with Malcolm's rebuff to your idea, do I take it you aren't interested any more? Graham On Nov 27, 5:19 pm, Brian <[EMAIL PROTECTED]> wrote: > Malcolm: > > Thanks for the reply. > > > Whilst I'm all in favour of attempting to solve problems

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-27 Thread Graham Dumpleton
On Nov 28, 12:06 pm, Brian <[EMAIL PROTECTED]> wrote: > > For each account, through what do they login initially? Are you > > expecting to use Django based login mechanisms for that, or do you > > front it all with HTTP Basic Authentication. If you are going to > > somehow switch based on their id

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-28 Thread Graham Dumpleton
Just letting you know off list that I will respond, just need to find some uninterrupted time to do so. Reply will be back to the list. Graham On Nov 28, 2:55 pm, Brian <[EMAIL PROTECTED]> wrote: > > > This is a good question, and I haven't come to a conclusion. Probably > > > it'll be the Djang

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-28 Thread Graham Dumpleton
On Nov 29, 9:31 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Just letting you know off list that I will respond, just need to find > some uninterrupted time to do so. Reply will be back to the list. Hmmm, wrong button. No matter .. Graham > Graham > > On N

Re: Best practice for shareable web application

2008-11-28 Thread Graham Dumpleton
On Nov 29, 2:34 pm, "Leon Yeh | New Avenue.net" <[EMAIL PROTECTED]> wrote: > Hi All, > > Usually, when I am working on django project, I have one database per > web site. So one company has all its database in one single mysql database. > > However recently I am working on a site that had requir

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-29 Thread Graham Dumpleton
On Nov 28, 2:55 pm, Brian <[EMAIL PROTECTED]> wrote: > > > This is a good question, and I haven't come to a conclusion. Probably > > > it'll be the Django built-in application-based authentication, > > > particular to each Django instance. There will be a master map of all > > > users to their res

Re: Best practice for shareable web application

2008-11-29 Thread Graham Dumpleton
outline a solution. Graham > Somebody must have seen this problem before and could have solved it. I > am going back to see if pinax project has something like this. > > Anyhow, back to my research. > > Leon Yeh > > Graham Dumpleton wrote: > > > On Nov

Re: Configuring multiple Django installs transparently via FastCGI mutiplexing

2008-11-29 Thread Graham Dumpleton
Graham Dumpleton wrote: > That is basically it and hopefully it makes sense. It may seem a bit > complex, but what you want to do isn't normal. Also, it all could have > been done a bit simpler if were using mod_wsgi 3.0 development code > from subversion trunk as with that have

Re: Webservers, Django thread-safeness, etc.

2008-12-03 Thread Graham Dumpleton
On Dec 4, 5:25 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Wed, Dec 3, 2008 at 11:45 AM, SteveB <[EMAIL PROTECTED]> wrote: > > I've had positive experiences with the standalone CherryPy webserver > > Although I can't prove it, I'm suspicious that the problem may be that > > Django is not

Re: Django And os.path Behavior

2008-12-05 Thread Graham Dumpleton
What locale settings do you have set in the environment of your user account? These will not be getting used in context of Apache. Graham On Dec 6, 9:21 am, dayvo <[EMAIL PROTECTED]> wrote: > Thanks for the response Andy. > > The code does work fine in the interpreter.  It's when the code is > c

Re: Django And os.path Behavior

2008-12-05 Thread Graham Dumpleton
On Dec 6, 10:07 am, dayvo <[EMAIL PROTECTED]> wrote: > Good question.  That could affect the app if I were using relative > path's or relying on the environment to locate files.  The path's I'm > using in the app are stored are absolute paths.  They work correctly > for path's that don't have un

Re: Two different django version on the same server?

2008-12-08 Thread Graham Dumpleton
On Dec 8, 10:15 pm, Pablo Ruiz Múzquiz <[EMAIL PROTECTED]> wrote: > Hmm. That is exactly what I meant with "No matter what I do with > Apache's PythonPath". > I have that same configuration you posted and /admin (and other stuff) > won't work (most certainly because of the django version mismatc

Re: Development server crash with no error message

2008-12-08 Thread Graham Dumpleton
On Dec 9, 8:50 am, Andrew Fong <[EMAIL PROTECTED]> wrote: > When I'm poking around in my Django app, my development server > (manage.py runserver) will sometimes quit without raising an exception > or leaving any messages. I am not tinkering around with the code or > doing anything that would fo

Re: dynamic mod wsgi

2008-12-09 Thread Graham Dumpleton
On Dec 9, 6:53 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, I'm converting to the excellent mod_wsgi and wondering if it's > possible to make a single httpd virtual host/wsgi file to manage > wildcard subdomains. > > Basically I have an app where i'm creating a new instance for each

Re: dynamic mod wsgi

2008-12-09 Thread Graham Dumpleton
ed something like the distinct settings file for each site and have the process itself send a SIGINT to itself. This would be a variation on background reloader described in: http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode#Restarting_Daemon_Processes More later. Graham > Thanks an

Re: Memory Footprint

2008-12-09 Thread Graham Dumpleton
On Dec 10, 3:10 am, Jeff Anderson <[EMAIL PROTECTED]> wrote: > Hello, > > First, I'm gonna say that I have DEBUG turned off, and it's not Django's > fault. > > My Django sites seem to eat lots of memory. This is fine, and it isn't a > huge deal except that I am using all of my VPS's memory plus

Re: Development server crash with no error message

2008-12-10 Thread Graham Dumpleton
Forgot to ask, what platform? On Dec 11, 10:05 am, Andrew Fong <[EMAIL PROTECTED]> wrote: > I'm using MySQLdb, cmemcache, PIL, and the django.contrib.gis stuff. > > On Dec 8, 2:58 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > On Dec 9, 8:50 am,

Re: Development server crash with no error message

2008-12-11 Thread Graham Dumpleton
On Dec 11, 8:06 pm, Tobias Kräntzer <[EMAIL PROTECTED]> wrote: > Am Donnerstag, den 11.12.2008, 00:05 +0100 schrieb Andrew Fong: > > > I'm using MySQLdb, cmemcache, PIL, and the django.contrib.gis stuff. > > Hi, we had a similar problem. It turns out, that in our case it was a > multithreading i

Re: setting the proper file permisions chmod

2008-12-11 Thread Graham Dumpleton
On Dec 12, 8:32 am, garagefan wrote: > I figured out my issue with the "access denied, suspicious operation" > bull... > > apparently the only way the admin side of my site can upload an image > to a directory is by having "other" set to have full rwx set... ie > chmod **7 I'm not so sure this

Re: setting the proper file permisions chmod

2008-12-11 Thread Graham Dumpleton
/mod_wsgi (not mod_python) and specifically using mod_wsgi daemon mode, with a distinct user defined for the daemon process and thus your Django application to run as. Graham > On Dec 11, 4:45 pm, Graham Dumpleton > wrote: > > > On Dec 12, 8:32 am, garagefan wrote: > > >

Re: setting the proper file permisions chmod

2008-12-11 Thread Graham Dumpleton
don't have o+rwx. I am biased, but arguable that mod_wsgi is a better overall choice these days than mod_python anyway and with mod_python fading away to a degree, better long term choice. Graham > On Dec 11, 4:59 pm, Graham Dumpleton > wrote: > > > On Dec 12, 8:52 am, garage

Re: apache+mod_wsgi+django problem with objects which stay in memory

2008-12-12 Thread Graham Dumpleton
On Dec 13, 10:18 am, vytautas wrote: > [Fri Dec 12 13:27:07 2008] [error] Model read finished. Duration > 1.2693259716 > [Fri Dec 12 13:27:07 2008] [error] Model validity check skipped > [Fri Dec 12 13:27:09 2008] [error] Model read finished. Duration > 1.23547005653 > [Fri Dec 12 13:27:09 2008

Re: How to embed django into a custom web server

2008-12-12 Thread Graham Dumpleton
On Dec 13, 12:05 pm, Jim wrote: > Hi, > > I'm experimenting with building a web server with embedded python and > I'd like to setup and include Django.   The server works by loading a > main python script into memory at startup and then script registers a > callback routine to handle incoming m

Re: How to embed django into a custom web server

2008-12-13 Thread Graham Dumpleton
andled the server can't be doing anything else. Thus, if you expect concurrency within a single process, you would need to use threads. Other option is to run multiple processes to handle requests. Why are you developing your own web server in the first place when there are already so many optio

Re: How to embed django into a custom web server

2008-12-14 Thread Graham Dumpleton
> Also, I *am* looking at using an available web server to accomplish > this task, but I wanted to look into this first. > > On Dec 13, 3:40 pm, Graham Dumpleton > wrote: > > > Jim wrote: > > > Hi Graham, > > > > Thanks for your response.  I've take

Re: django and favicon.ico problem

2008-12-16 Thread Graham Dumpleton
On Dec 16, 9:45 pm, architecture wrote: > i was working with php and always i put the favicon.ico in the root of > the website but now the problem with django occurs > now i'm working with django and i have a problem now > i used > 1. static.serve > 2. .htaccess > 3.redirect_to > > but none of th

Re: django and favicon.ico problem

2008-12-17 Thread Graham Dumpleton
On Dec 18, 10:12 am, felix wrote: > you can put it directly in your http-vhosts.conf file > > >              ServerName crucial-systems.com >              DocumentRoot /home/crucial/crucial-stack/crucialwww > ... etc... > > Alias /favicon.ico "/home/crucial/crucial-stack/crucialwww/favicon.ico

Re: Limiting HTTP request size

2008-12-19 Thread Graham Dumpleton
On Dec 20, 12:48 am, Andreas Gustafsson wrote: > What's the recommended way to protect a Django application against > denial of service via huge file uploads or  huge POST requests in > general?  If I set the LimitRequestBody option in the Apache > configuration file, mod_python throws an omino

Re: Limiting HTTP request size

2008-12-20 Thread Graham Dumpleton
On Dec 20, 9:19 pm, Andreas Gustafsson wrote: > On Dec 19, 11:45 pm, Graham Dumpleton > wrote: > > > It hasn't got anything to do with LimitRequestBody. That this but > > exists in current versions of mod_python and can crop up at random > > times is a good

Re: Admin formatting

2008-12-20 Thread Graham Dumpleton
On Dec 21, 12:54 pm, Jeff Anderson wrote: > MS wrote: > > I am learning Django under Windows Vista. > > > I am using Python 2.5 and Wamp5. The document root for Apache is set > > to c:/wamp/www/ > > > I have a project under c:/wamp/www/DjangoProjects/mysite > > Don't do that. You don't need you

Re: dynamic mod wsgi

2008-12-22 Thread Graham Dumpleton
t back to you last time, it was a hectic few weeks. Things have settled down somewhat now, so I'll go back over your original post and work out again what it is you were trying to do. Graham > Thanks and Regards, > Ben > > On 9 Dec 2008, at 10:18, Graham Dumpleton wrote: >

Re: dynamic mod wsgi

2008-12-22 Thread Graham Dumpleton
take up? How many different site instances would you have? Are all the site instances distinguishable by server name alone? Graham On Dec 23, 9:00 am, Graham Dumpleton wrote: > On Dec 22, 9:44 pm, Ben Eliott wrote: > > > Hi Graham, > > I've finally managed to g

Re: Configuring mod_python and Djano on Apache2

2008-12-30 Thread Graham Dumpleton
On Dec 31, 8:41 am, tosh wrote: > it depends on the url structure of your site really > > if you don't need your django site to load from the root you could > just do something like > > >     SetHandler None > Don't need SetHandler None at root needed if mounting at sub URL. In fact this may

Re: Slow application performance...

2009-01-01 Thread Graham Dumpleton
On Jan 2, 2:17 pm, Jeff Anderson wrote: > vernon wrote: > > Hi everyone, > > > When I was first experimenting with Django on my local machine with > > the bundled webserver, one of the things I was really impressed by was > > the speed — everything was instantaneous. Listing things in the DB, >

Re: python.conf question, multiple sites on same server?

2009-01-03 Thread Graham Dumpleton
On Jan 4, 12:17 pm, garagefan wrote: > I've read the documentation, and it doesn't seem clear enough, or > provide a fully working example? > > i've copied what i have in my python.conf file, keep in mind that i > have removed site specific names and have made them generic > > NameVirtualHost *

Re: python.conf question, multiple sites on same server?

2009-01-03 Thread Graham Dumpleton
the configuration. Graham On Jan 4, 12:47 pm, Graham Dumpleton wrote: > On Jan 4, 12:17 pm, garagefan wrote: > > > I've read the documentation, and it doesn't seem clear enough, or > > provide a fully working example? > > > i've copied what i have i

Re: python.conf question, multiple sites on same server?

2009-01-03 Thread Graham Dumpleton
then we may be able to answer. Graham > On Jan 3, 8:47 pm, Graham Dumpleton > wrote: > > > On Jan 4, 12:17 pm, garagefan wrote: > > > > I've read the documentation, and it doesn't seem clear enough, or > > > provide a fully working example? > > &

  1   2   3   4   5   6   7   8   9   10   >