Re: Django 1.0.2 runfcgi fails to start on Windows

2009-01-17 Thread Graham Dumpleton
On Jan 18, 6:31 am, Jon Prater wrote: > There are no precompiled binaries for mod_wsgi with Python 2.6.  In > order to use it, I would have to download the source code for it and > compile it against Python 2.6, which I don't think is doable in > Windows without making some sort of special adju

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Graham Dumpleton
On Jan 18, 3:36 pm, Malcolm Tredinnick wrote: > On Jan 18, 2:53 pm, Adam Yee wrote: > > > It was a slam dunk for completing the tutorial in the development > > server, but I can't figure out this issue I'm having with the generic > > views while using my apache server.  I'm unable to get the v

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Graham Dumpleton
On Jan 18, 8:46 pm, Adam Yee wrote: > On Jan 17, 8:36 pm, Malcolm Tredinnick > wrote: > > > > > On Jan 18, 2:53 pm, Adam Yee wrote: > > > > It was a slam dunk for completing the tutorial in the development > > > server, but I can't figure out this issue I'm having with the generic > > > views

Re: Multiple django instances in apache; dynamic configuration

2009-01-18 Thread Graham Dumpleton
On Jan 19, 8:00 am, appleseed249 wrote: > Hi all - > > I am building a site where users can register and deploy their own > instances of Django. This isn't a public hosting site, just some > distributed system work I'm doing for a class project. > The Django instances are deployed on apache. I

Re: Deploying Django tutorial part 4, redirecting problem, apache error

2009-01-18 Thread Graham Dumpleton
On Jan 19, 3:02 am, JCorey wrote: > On Jan 18, 9:39 am, ptone wrote: > > > In the tutorial, the form action in the poll_detail template is > > hardcoded to "/polls/..." > > > So the browser is doing what's been explicitly asked of it, despite > > Django doing its best to deal gracefully with y

Re: Datetime and apache log files show wrong timezone

2009-01-24 Thread Graham Dumpleton
On Jan 24, 8:46 pm, simong wrote: > My apologies in advance if this isn't a direct django issue but I > can't work out where the problem is coming from. > > My server's system time runs Centos 5 and is set to Europe/London: > > -bash-3.2$ date > Sat Jan 24 12:26:14 GMT 2009 > -bash-3.2$ date -u

Re: Datetime and apache log files show wrong timezone

2009-01-24 Thread Graham Dumpleton
On Jan 25, 2:27 am, simong wrote: > On Jan 24, 2:30 pm, Graham Dumpleton > wrote: > > > > > On Jan 24, 8:46 pm, simong wrote: > > > > My apologies in advance if this isn't a direct django issue but I > > > can't work out where the problem

Re: Multithreaded development server

2009-01-24 Thread Graham Dumpleton
On Jan 25, 11:08 am, Almad wrote: > Hello, > > is there a way to run development server multithreaded, so it can > handle recurring requests? Just use Apache/mod_wsgi instead as described in: http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django.html Use daemon mode with th

Re: mod_wsgi problem (python 2.6.1, Apache 2.2.11, Windows XP SP3)

2009-01-25 Thread Graham Dumpleton
This isn't going to be Django issue, so if you do have any useful information, perhaps post any followups to one of the discussions on mod_wsgi Google Group going on about Python 2.6 and mod_wsgi. This message has also been posted there. http://groups.google.com/group/modwsgi/browse_frm/thread

Re: Django Production Setup / Threading / Fcgi

2009-01-27 Thread Graham Dumpleton
On Jan 27, 8:20 pm, David wrote: > Hello, > > iam new to django and in the phase of researching django production features. > Iam planing to run django as fcgi behind a thin webserver. Can some point me > out a good read or resource to find more about this topics. Iam specially > interested in

Re: Any django users in Malaysia/Singapore

2009-01-28 Thread Graham Dumpleton
On Jan 29, 12:15 pm, Bond Lim wrote: > Hi, I am from Malaysia and currently using django. Too bad is that in > Malaysia, we do not have any python or django conference, > > On Wed, Jan 28, 2009 at 04:58:09PM -0800, ycloh wrote: > > > Hi all, just wondering if there are many django users in this

Re: Sessions Unexpectedly Causing Logout

2009-02-03 Thread Graham Dumpleton
On Feb 4, 6:43 am, SnappyDjangoUser wrote: > I am having a weird issue in which users are randomly logged out of > the site and redirected to the login page.  They must re-enter > credentials before being able to continue browsing the site.  The > weird thing is I only see this on my production

Re: Changing default app url in development server

2009-02-04 Thread Graham Dumpleton
On Feb 5, 1:25 am, Adam Stein wrote: > I do something similiar where I have an extra item in the url.  To get > Apache and the Django server to match, I just add the extra part in > urls.py that I'm matching.  So instead of something like: > > (r'^admin/(.*)', admin.site.root) > > in Alex's cas

Re: Which Python are people using on OSX?

2009-02-06 Thread Graham Dumpleton
On Feb 6, 9:27 pm, "Adam Radestock" wrote: > I've been using Python on Mac OS X for some time now... > > It's easy enough to find a python installer for OS X that'll bring you > up to the latest version, without the need to compile. There's a Mac > installer disk image here for 2.6.1, this is w

Re: Installing Django to a newer version of python

2009-02-06 Thread Graham Dumpleton
On Feb 7, 12:13 am, BrianE wrote: > how can I get mod_python, which is needed by apache, to load in the > python 25 directoty and not in the 24 directory? If no prebuilt binary of mod_python is available that was compiled against Python 2.5 then you must build mod_python from source code yours

Re: mod_python vs. Django?

2009-02-09 Thread Graham Dumpleton
On Feb 9, 9:26 pm, Russell Keith-Magee wrote: > On Mon, Feb 9, 2009 at 6:54 PM, Vincent wrote: > > > Hello > > > I'd like to write a Web 2.0-type web application. I find Python a lot > > more pleasurable than PHP. > > > I'd like to have information about the pro's and con's of using > > Apache

Re: start new thread in mod_python

2009-02-11 Thread Graham Dumpleton
On Feb 11, 7:33 pm, Xian Chen wrote: > Is threading in mod_python allowed? > > I design my project like this: > > in the views.py, once the user click some buttons, the view function will > start new thread to run some background processes. > > The site runs good by using Django owner server. B

Re: user env needed in apache with mod_wsgi

2009-02-11 Thread Graham Dumpleton
On Feb 12, 12:09 pm, Malcolm Tredinnick wrote: > On Tue, 2009-02-10 at 10:56 +, Alan wrote: > >  Hi list, > > > My problem is that: since when using apache + mod_wsgi I got a neutral > > env for my server (e.g. PATH=/usr/bin:/bin) but in the end what I need > > is all the envs that is in a

Re: Processing a file...

2009-02-13 Thread Graham Dumpleton
On Feb 13, 8:42 pm, Jacob Rigby wrote: > The testserver is single threaded (assuming you're using django- > admin.py runserver), so it would appear to hang until the os.popen > call completes.  If it's really crashing, then something horrible must > be going wrong with the child process. > > In

Re: mod_wsgi+apache2.2+django1+WindowsXP: can't serve images

2009-02-15 Thread Graham Dumpleton
On Feb 16, 10:19 am, MrBodjangles wrote: > I am going thru the sample blog application introduced in the book > "Python Web Development with Django (covers Django 1.0)". > > Before getting too deep into the book, I decided I wanted to first > ensure that the application will render in apache si

Re: Authentication/access check when serving static media thru Apache/nginx

2009-02-16 Thread Graham Dumpleton
On Feb 16, 9:53 pm, "proteus...@gmail.com" wrote: > The way to do this is by utilizing nginx as a reverse proxy for your > dynamic django (presumably apache) server and a peer media server > (presumably another nginx setup). Nginx has a great feature (as does > lighttpd) where you can have your

Re: Differen unicode behaviour between mac os x and linux

2009-02-17 Thread Graham Dumpleton
On Feb 17, 3:01 pm, Malcolm Tredinnick wrote: > > I think I should have clarified some more facts about my setup. > > 1- On mac, django is running on dev mode, so stdout is the console. On > > linux, it'smod_wsgi, so stdout is redirected to apache error log > > files, on which I'm issuing a "tail

Re: mod_wsgi+apache2.2+django1+WindowsXP: can't serve images

2009-02-17 Thread Graham Dumpleton
h > in there, I am now at a lost :>) > Off I gothank you again! Which Django book are you reading? Am not aware of any Django book in print which really even mentions mod_wsgi, except maybe in passing. All that I have seen concentrate on mod_python. Graham > On Sun, Feb 15,

Re: seg fault with LDAP authentication

2009-02-17 Thread Graham Dumpleton
Does it happen for mod_wsgi daemon mode as well as embedded mode? If happens for daemon mode, create a single daemon process and then use method described in: http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Debugging_Crashes_With_GDB to try and capture a stack trace for where it cr

Re: Django processes under Apache

2009-02-22 Thread Graham Dumpleton
On Feb 23, 1:29 am, stevedegrace wrote: > I don't think I'm understanding this very well. By doing some > inspection, I see that Apache is running under two PIDs, which makes > sense because ServerLimit right now is set to 2. What I'm wondering > is, does each of those processes have a persiste

Re: Static file serve with prior authentication?

2009-02-23 Thread Graham Dumpleton
On Feb 24, 8:53 am, Andy Mckay wrote: > On 23-Feb-09, at 1:44 PM, Katja Loeffler wrote: > > > I have been looking for a solution to make a file download with prior > > authentication ... > > > But this is not really "protected" since they can make the link public > > once they have it and every

Re: Postgis on Mac OS Leopard

2009-02-26 Thread Graham Dumpleton
On Feb 26, 10:07 pm, omat wrote: > Hi all, > > Following the instructions on inhttp://geodjango.org/docs/install.html, > i managed to get to "Creating a Spatial Database Template" section. > > But when trying to execute the line below (as postgres user of > course): > $ psql -d template_postgis

Re: Postgis on Mac OS Leopard

2009-02-26 Thread Graham Dumpleton
ve to be available as 64 bit as well. So, explain how Python gets run. Are you running command line Python to see this error, running Django under Apache. Graham > I am lost. > > On Feb 26, 1:25 pm, Graham Dumpleton > wrote: > > > On Feb 26, 10:07 pm, omat wrote

Re: Postgis on Mac OS Leopard

2009-02-27 Thread Graham Dumpleton
run 'file' on any which are standard OS libraries/frameworks and ensure that all those also have i386. Then repeat otool/file for each of those in turn, until check the whole graph of dependent libraries to see whether they have the correct architecture. Graham > Thanks. > >

Re: Postgis on Mac OS Leopard

2009-02-27 Thread Graham Dumpleton
ql . Replace '.....' with your options as appropriate. Graham > Thanks, > omat > > On Feb 27, 11:16 am, Graham Dumpleton > wrote: > > > On Feb 27, 8:13 pm, "omat* gezgin.com" wrote: > > > > I am using the django's built-in de

Re: Why do some shared hosting providers support Django and others don't?

2009-03-02 Thread Graham Dumpleton
On Mar 3, 10:25 am, Wiiboy wrote: > I'm with a shared hosting company called Lunarpages.  They tell me > Django, by itself, even with Fast CGI, because it is a framework, is > too resource intensive for them to allow.  But many other shared > hosting providers allow Django.  So, how do those who

Re: Why do some shared hosting providers support Django and others don't?

2009-03-02 Thread Graham Dumpleton
On Mar 3, 4:00 pm, Wiiboy wrote: > So, is getting mod_python and Django worth ditching my current > provider, and a dollar more a month? Be careful of web hosting companies offering mod_python. If they also provide you with your own Apache instance which is under your full control (like WebFacti

Re: URL quoting and escaping

2009-03-03 Thread Graham Dumpleton
On Mar 4, 12:29 pm, Malcolm Tredinnick wrote: > On Tue, 2009-03-03 at 17:09 -0800, Rob Hudson wrote: > > At work we wanted to set up some quick clickthru tracking.  I whipped > > up a quick solution that seemed to work on my local machine.  The > > solution was to use jQuery to look for anchor

Re: append_slash and mod_wsgi problem when Django lives in subdirectory

2009-03-05 Thread Graham Dumpleton
On Mar 6, 5:14 am, Benedykt wrote: > Dear sirs, > I have configured my web server sohttp://localhost/wsgipoints to > Django connected with WSGI: > WSGIScriptAlias /wsgi /var/www/django.wsgi > > Now I can see that when I request URL "http://localhost/wsgi/myapp/ > test/", Django sees URL "myapp/

Re: Django Resource Usage

2009-03-05 Thread Graham Dumpleton
On Mar 6, 1:24 pm, Malcolm Tredinnick wrote: > On Thu, 2009-03-05 at 18:08 -0800, Paulo wrote: > > Hi > > > I want to install Django on my webserver, but i would like to know > > from you if django has an intense resource usage (memory, cpu) or it's > > not a concern? > > As always, it depends

Re: Django Resource Usage

2009-03-06 Thread Graham Dumpleton
y Django as explained in Django documentation. Graham > On 6 mar, 00:04, Graham Dumpleton wrote: > > > On Mar 6, 1:24 pm, Malcolm Tredinnick > > wrote: > > > > On Thu, 2009-03-05 at 18:08 -0800, Paulo wrote: > > > > Hi > > > > > I want to i

Re: Django and Python Warnings

2009-03-06 Thread Graham Dumpleton
On Mar 7, 2:53 am, Jacob Kaplan-Moss wrote: > On Fri, Mar 6, 2009 at 9:46 AM, Brian Neal wrote: > > I updated my working copy of Django after a long period and was > > browsing the source and noticed it was taking advantage of the Python > > warnings module. What is the best way to "see" such

Re: Django and Python Warnings

2009-03-06 Thread Graham Dumpleton
On Mar 7, 12:50 pm, Malcolm Tredinnick wrote: > On Fri, 2009-03-06 at 18:12 -0500, Jacob Kaplan-Moss wrote: > > On Fri, Mar 6, 2009 at 5:56 PM, Graham Dumpleton > > wrote: > > > Anyway, the issue is that at the moment mod_wsgi doesn't have an > > > equ

Re: Django and Python Warnings

2009-03-07 Thread Graham Dumpleton
On Mar 7, 7:29 pm, Malcolm Tredinnick wrote: > Hi Graham, > > On Fri, 2009-03-06 at 21:50 -0800, Graham Dumpleton wrote: > > [...] > > > I am still toying with whether I add a few things or not. The first of > > these is optionally enabled support in daemon mode f

Re: Dynamically Changing Cache Settings

2009-03-09 Thread Graham Dumpleton
If considering mod_wsgi due to its reloading ability, ensure you read: http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django.html http://blog.dscpl.com.au/2009/02/source-code-reloading-with-modwsgi-on.html to unders

Re: PYTHONPATH stuck on 2.3.5

2009-03-10 Thread Graham Dumpleton
On Mar 11, 10:51 am, "neri...@gmail.com" wrote: > Hello, > > I installed python 2.5.4 using macports and edited my .profile by > adding: > > export PYTHONPATH=/opt/local/var/macports/sources/rsync.macports.org/ > release/ports/lang/python25:${PYTHONPATH} > > ...which wasn't reflected in the she

Re: After sending HttpResponse

2009-03-17 Thread Graham Dumpleton
On Mar 17, 6:19 pm, Malcolm Tredinnick wrote: > On Tue, 2009-03-17 at 00:12 -0700, Ramashish Baranwal wrote: > > Hi, > > > I need to do some cleanup after sending a response to the client. That > > means I want to send response without returning a response object. > > Something like- > > > def

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Graham Dumpleton
Either way, their dango.root setting is wrong as they are setting it to physical file system path. Remove that whole django.root setting as you do not need it when mounting at root of site. The sooner people stop using mod_python the better. ;-) Graham On Mar 18, 12:41 pm, Karen Tracey wrote:

Re: Crazy error with utf-8 & apache (please help!)

2009-03-20 Thread Graham Dumpleton
On Mar 20, 10:06 pm, elm wrote: > Thanks for the hint, > > > > > Indeed, that's the latin1 encoding of 'OTOÑO', notutf8.  Maybe Oracle > > is getting somehow getting the client encoding confused.  Try setting > > the environment variable NLS_LANG = '.UTF8' for the Apache process. > > I will exp

Re: Problem getting application to run with Apache2 and wsgi

2009-03-20 Thread Graham Dumpleton
On Mar 21, 12:04 pm, Malcolm Tredinnick wrote: > On Fri, 2009-03-20 at 20:47 -0400, Jack Orenstein wrote: > > I'm running Django 1.02 and my application is running with the   > > development server. I'm trying to move it over to Apache2 + wsgi. > > > Here is my httpd.conf setup for wsgi: > > >

Re: Django book mostly done?

2009-03-23 Thread Graham Dumpleton
On Mar 18, 6:20 pm, Gour wrote: > > "Alex" == Alex Gaynor writes: > > Alex> Adrian just put the last batch of chapters online, so I believe > Alex> all the content is now up.  Having skimmed most of it I can say it > Alex> looks really good and I'm sure it basically all works, that said >

Re: Please help me give mod_wsgi to function as runserver

2009-06-19 Thread Graham Dumpleton
On Jun 20, 1:56 am, James Gregory wrote: > The documentation for this possibility is here: > > http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode With additional instructions of how to apply that to Django in: http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django.html

Re: admin access in https redirect in http

2009-06-20 Thread Graham Dumpleton
Any solution may be dependent on how Django was being hosted. Neither of you have actually said how you were hosting Django. Even if OP worked it out, his solution may not be relevant to use due to you hosting it differently. Graham On Jun 21, 1:50 pm, hiphoox wrote: > Hi, > > I have exactly th

Re: admin access in https redirect in http

2009-06-21 Thread Graham Dumpleton
apps/django_trunk', '/home/experior/ > webapps/django_trunk/lib/python2.5'] + sys.path > sys.path.append('/home/experior/webapps/django_trunk/experior/') > > from django.core.handlers.wsgi import WSGIHandler > > os.environ['DJANGO_SETTINGS_MODULE'] = 'experior.settings&#x

Re: admin access in https redirect in http

2009-06-21 Thread Graham Dumpleton
SliceHost is always popular. On Jun 22, 12:02 pm, hiphoox wrote: > Thanks a lot for your answer Graham. > > Could you recommend me any VPS? > I still have the option to move to another one. > > Thanks, > > Norberto Ortigoza > > On Jun 21, 7:03 pm, Graham Dumpleton

Re: Django with mod_wsgi troubles

2009-06-24 Thread Graham Dumpleton
On Jun 25, 4:05 am, Laran Evans wrote: > I've tried a bunch of different approaches going back and forth > between mod_python andmod_wsgi. I can't get past this one error: > > NoSectionError at / > > No section: 'formatters' > > Request Method:         GET > Request URL:    http://localhost:100

Re: django-registration not reflecting changes to forms and views

2009-06-24 Thread Graham Dumpleton
On Jun 24, 10:10 pm, David De La Harpe Golden wrote: > neri...@gmail.com wrote: > > I tried adding more form fields to the > > registration form and the changes would never show with touch > > dispatch.fcgi, > > Which fcgi implementation are you using? Assuming apache2 web server, > note that t

Re: objects in memory that don't time out?

2009-06-24 Thread Graham Dumpleton
On Jun 25, 9:35 am, qwcode wrote: > This is a re-phrase of a previous email... trying to trigger an answer > using terms that might make more sense to this list.  I'm more > familiar with java frameworks. > > Is there a way to have objects persist in memory that don't time out? > > For example,

Re: objects in memory that don't time out?

2009-06-24 Thread Graham Dumpleton
On Jun 25, 9:58 am, Graham Dumpleton wrote: > On Jun 25, 9:35 am, qwcode wrote: > > > This is a re-phrase of a previous email... trying to trigger an answer > > using terms that might make more sense to this list.  I'm more > > familiar with java frameworks.

Re: objects in memory that don't time out?

2009-06-24 Thread Graham Dumpleton
On Jun 25, 3:28 pm, qwcode wrote: > > So, as far as question you pose in different thread, look at Python > > module global variables. If you don't understand how that helps, then > > you don't understand how Python global variables work. Just be aware > > of the issues that global variables ca

Re: using WSGI, module _socket cannot be loaded

2009-06-28 Thread Graham Dumpleton
Remove your Python installation and then install Python 2.6.2 and ensure that it is installed for all users. Don't know why as yet, but a few people have seen this problem and reinstalling Python fixes the problem. Not sure if it is specifically something to do with Python 2.6.1 or whether it is

Re: apache, mod_wsgi and 100-continue

2009-06-28 Thread Graham Dumpleton
Upgrade mod_wsgi to the latest. You are using an old version which has a problem with 100-continue requests. Graham On Jun 29, 5:58 am, Gustavo Henrique wrote: > hi guys, > I have a problem with an URL sending a request POST with header 100- > continue to my app. I'm using a service similar to

Re: Is IP address caching built into the Django Framework?

2009-06-28 Thread Graham Dumpleton
On Jun 29, 10:33 am, Aneesh wrote: > I believe the request object should contain the IP address regardless > of whether the user has an account.  You can store that IP with the > vote like Vladimir mentioned. You can't rely on just the IP. If you do then you will have problems where large numb

Re: Is IP address caching built into the Django Framework?

2009-06-28 Thread Graham Dumpleton
On Jun 29, 10:33 am, Aneesh wrote: > I believe the request object should contain the IP address regardless > of whether the user has an account.  You can store that IP with the > vote like Vladimir mentioned. You can't rely on just the IP. If you do then you will have problems where large numb

Re: for the thousandth time... No module named django.core.handlers.modpython

2009-06-29 Thread Graham Dumpleton
On Jun 30, 12:12 pm, Rama Vadakattu wrote: > As the error is with import please try to do this > > Just open a python shell and try do the import More to the point, do it with the exact version that mod_python was compiled against and run the test as the same user that Apache runs as. This is

Re: A problem about django apache mod_wsgi with oracle

2009-06-30 Thread Graham Dumpleton
On Jun 30, 6:55 pm, "arli...@gmail.com" wrote: > I can use the oracle with django admin runserver, > but when i use apche withmod_wsgi, apache error log : > ImproperlyConfigured: Error loading cx_Oracle module: DLL load failed: > What's wrong with it ? Please clarify whether this is on Windows

Re: django cache framework not work well on mod_python of apache

2009-07-01 Thread Graham Dumpleton
On Jul 1, 7:22 pm, Hongyu Li wrote: > #!/usr/bin/env python > # -*- coding: utf-8     -*- > import xmlrpclib > import os > import sys > import time > import math > import optparse > import tm.filecheck > import service > from django.http import HttpResponse > from django.core.cache import cache

Re: django cache framework not work well on mod_python of apache

2009-07-01 Thread Graham Dumpleton
Presumably use memcache. On Jul 2, 12:09 pm, Hongyu Li wrote: > Thanks for your comment. > What was you do when want add a global memory cache in your app with django? > > On Wed, Jul 1, 2009 at 8:08 PM, Graham Dumpleton > > > > > > wrote: > > &

Re: django cache framework not work well on mod_python of apache

2009-07-01 Thread Graham Dumpleton
On Jul 2, 2:00 pm, Chhouk Voeun wrote: > no i use window If this reply was truly about original caching issues with multiprocess Apache, take note that it was said that it was a UNIX platform issue. On Windows there is only one process, so it is not a problem and you can use normal in process ca

Re: django cache framework not work well on mod_python of apache

2009-07-01 Thread Graham Dumpleton
on lighttpd, ls it a multi process server too, or ? > > On Thu, Jul 2, 2009 at 11:55 AM, Graham Dumpleton < > > > > graham.dumple...@gmail.com> wrote: > > > Presumably use memcache. > > > On Jul 2, 12:09 pm, Hongyu Li wrote: > > > Thanks for your

Re: Best way to handle HEAD method

2009-07-02 Thread Graham Dumpleton
On Jul 3, 4:55 am, Andrew Fong wrote: > How exactly should I handle a HEAD request in Django? > > So ... assuming my view looks like this... > > def handle_request(request): >     if request.method == 'POST': return do_post(request) >     elif request.method == 'GET': return do_get(request) >  

Re: Managing settings.py from admin site

2009-07-02 Thread Graham Dumpleton
On Jul 3, 9:11 am, Julián C. Pérez wrote: > Hi everyone > I have a doubt... > Is it possible to edit or customize -not delete- variables created in > settings.py from the admin site of my application?? > I mean, in order to control the whole site from web interface instead > of manually editing

Re: WSGIScriptAlias without access to apache config?

2009-07-06 Thread Graham Dumpleton
On Jul 7, 8:17 am, Durand wrote: > Hi, > > I'm wondering whether I can use django in a shared hosting environment > where I don't have access to the main apache configuration. For cheap, large scale commodity web hosting sites only if they provide FASTCGI support to you. Even then, only if the

Re: Best way to handle HEAD method

2009-07-06 Thread Graham Dumpleton
things based on REQUEST_METHOD type, then it is more likely to be in your code. I would suggest you post the Python traceback so others can say whether it is an issue in Django layers to eliminate that, and then perhaps point at where problem may lie. Ie., in your code or elsewhere. Graham > -

Re: WSGIScriptAlias without access to apache config?

2009-07-06 Thread Graham Dumpleton
ecurity of their system if relying on second hand information. Graham > Thanks > > > > On Tue, 07 Jul 2009 00:24:12 +0100, Graham Dumpleton > wrote: > > > On Jul 7, 8:17 am, Durand wrote: > >> Hi, > > >> I'm wondering whether I can use django in a

Re: Django Server performance

2009-07-07 Thread Graham Dumpleton
On Jul 8, 4:16 am, Ramdas S wrote: > Hi, > > We have a web server where we are hosting around 12-15 django web sites most > of them attracting modest traffic, except a couple which sees spiikes on and > off. Together we estimate just about 20,000-40,000 page views. > > However we are expecting

Re: Best way to handle HEAD method

2009-07-07 Thread Graham Dumpleton
owed for this path" % method) > > --- > > Graham, are you suggesting that if I receive a HEAD request, I should > behave exactly the same as if I received a GET request? That is, I > should assume Apache / mod_wsgi will take care of translating my > response into one appropria

Re: Figuring out my memory usage for django + wsgi + apache prefork

2009-07-08 Thread Graham Dumpleton
On Jul 9, 3:44 am, Jumpfroggy wrote: > I'm running a bunch of django apps on my shared host with an 80mb > memory limit.  I have a bunch of very low-traffic sites I want to keep > running, but use as little memory as possible, so my goal is to > minimize the memory usage for each of these very

Re: better uptime with a fallback app

2009-07-22 Thread Graham Dumpleton
On Jul 22, 8:19 pm, Le Roux Bodenstein wrote: > I'm trying to keep my django powered cms online even when I have to > restart the app or take it down for maintenance. > > My rendered pages are generally quite cacheable and they only change > if someone content manages a page or someone comments

Re: better uptime with a fallback app

2009-07-22 Thread Graham Dumpleton
On Jul 22, 9:34 pm, Le Roux Bodenstein wrote: > > If it is to bring down application for maintenance, seems like it > > would be easier to use Apache/mod_wsgi in daemon mode. > > I'll give mod_wsgi a go. To be honest I never looked at it before > simply because it is tied to apache. But if it c

Re: better uptime with a fallback app

2009-07-22 Thread Graham Dumpleton
On Jul 22, 10:17 pm, Le Roux Bodenstein wrote: > >  http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usa... > > Wow. Thanks. I'm reading your entire blog now - it is really helpful. > I just realised how little I know about this. Your blog is certainly > the best resource on th

Re: run django on multicore machine

2009-07-23 Thread Graham Dumpleton
On Jul 24, 8:53 am, James Matthews wrote: > Django depends more on the python interpreter. If it really matters > recompile python to take advantage of your machine. I am sure you will see > some nice improvements > > On Fri, Jul 24, 2009 at 12:08 AM, Some Guy wrote: > > > Not sure about my an

Re: Invalid command 'WSGIDaemonProcess'

2009-07-25 Thread Graham Dumpleton
On Jul 26, 3:41 am, Daniel Roseman wrote: > On Jul 25, 2:11 pm, Jose Sibande wrote:> I just > uploaded my application to my server and this is the error that > > I am getting when I try to restart apache: > > Restarting web server: apache2Syntax error on line 6 of /etc/apache2/ > > httpd.conf

Re: Problems with mod_wsgi and django

2009-07-27 Thread Graham Dumpleton
On Jul 27, 5:02 pm, Parag Shah wrote: > Hello, > > I am trying to configure Apache2 server with mod_wsgi for my Django > application. However when I try to access the website I get the following > msg on the browser: > > Forbidden > > You don't have permission to access / on this server. > > He

Re: Template links when Django not domain root

2009-07-30 Thread Graham Dumpleton
Using FORCE_SCRIPT_NAME is only appropriate for certain WSGI hosting mechanisms. Using it may simply hide the fact that the OPs application code is wrong to begin with. OP should indicate how they are hosting their application for real site. Ie., mod_python, mod_wsgi, fastcgi or other. Graham O

Re: Weird character shifting in mod_python

2009-07-30 Thread Graham Dumpleton
On Jul 31, 9:27 am, Andrew wrote: > We get these incredibly bizarre errors every once and a while where a > single character of python gets transformed. The code itself isn't > changing, and the area where it pops up changes each time. Any ideas? > > MOD_PYTHON ERROR > > ProcessId:      28165 >

Re: Template links when Django not domain root

2009-07-30 Thread Graham Dumpleton
isn't much > in the way of examples on FORCE_SCRIPT_NAME I can find and I'm not > really an apache admin so I'm a bit out of my depth here. > > Is this the avenue I should be pursuing or is there some way to set > this up better.  the url filter seems to violate DRY me

Re: quick question: how to have *.domainname.com url in django

2009-07-30 Thread Graham Dumpleton
On Jul 31, 3:09 pm, weiwei wrote: > Hello all, > > I know there are lots of example for how to sethttp://domainname.com/* > url. But how to have http://*.domainname.com   url in django? Really depends on what you are trying to achieve and how you are hosting Django. Apache provides a way of h

Re: Template links when Django not domain root

2009-08-01 Thread Graham Dumpleton
> On Jul 31, 1:42 pm, Adam Yee wrote: > > > > > On Jul 30, 7:29 pm, Graham Dumpleton > > wrote: > > > > If you are using mod_wsgi then you definitely do not need > > > FORCE_SCRIPT_NAME as mod_wsgi does the correct think in respect of > > > setting

Re: Two django devlopments under same apache config

2009-08-03 Thread Graham Dumpleton
On Aug 3, 8:56 pm, Miguel wrote: > Hi all, > > I would like to configure two django sites using the same apache. One > running on 80 port and other running on 8080 port. > The problem I have found is that the configuration I have done for the > second one it is using teh configuration of the fi

Re: apache

2009-08-04 Thread Graham Dumpleton
On Aug 4, 8:42 pm, Salvatore Leone wrote: > Hi, > > I'm trying to move my site from the developemente server to Apache but I > always obtain this error: > > ImportError: Could not import settings 'pecwizard.settings' (Is it on > sys.path? Does it have syntax errors?): No module named pecwizard

Re: apache

2009-08-04 Thread Graham Dumpleton
You must recompile mod_python to use a different Python version. Changing the symlink like that will not make a difference and you could break other stuff on your system which assumed default Python is a specific version. You should also not go blindly changing permissions to 777 as that makes it

Re: Apache and mod_wsgi on Ubuntu

2009-08-04 Thread Graham Dumpleton
On Aug 5, 10:27 am, Malcolm Tredinnick wrote: > On Tue, 2009-08-04 at 17:12 -0700, Steve1234 wrote: > > I am trying to setup Apache and mod_wsgi on Ubuntu to run Django > > content. I generated a minimum project using "django-admin.py > > startproject mysite" creating the project in my home fol

Re: apache ok (mod_wsgi) bue some issue with admin backend

2009-08-05 Thread Graham Dumpleton
On Aug 5, 8:04 pm, Malcolm Tredinnick wrote: > On Wed, 2009-08-05 at 11:50 +0200, Salvatore Leone wrote: > > Hello again... > > > I have my site working with mod_wsgi, but I still have some problem > > using the admin interface and managing uploaded files. > > > On the admin side all static fil

Re: Touch django.wsgi not reloading daemon

2009-08-05 Thread Graham Dumpleton
On Aug 5, 11:12 pm, Sean Kemplay wrote: > Hi all. > > I have resolved this by adding user=www-data group=www-data to the > WSGIDaemonProcess: > > WSGIDaemonProcess sean75_ispy user=www-data group=www-data That change shouldn't have made any difference as those are the defaults for user/group a

Re: Touch django.wsgi not reloading daemon

2009-08-05 Thread Graham Dumpleton
ython compiled against different version and mod_python linked library statically but mod_wsgi was using shared library. Where static versus shared is the issue, usually causes crashes rather than unexpected behaviour. Graham > The config files needed no change. > > Thanks, > Se

Re: access to REQUEST_URI ?

2009-08-06 Thread Graham Dumpleton
On Aug 7, 7:37 am, Rebecca K wrote: > I'm working on an ARK (Archival Resource Key) resolver in django, and > as part of the ARK spec I need to recognize and distinguish urls > ending with '?' and '??'  (no query string or anything else > following). > > When I run my django app throughmod_wsgi

Re: Mod_wsgi and Apache Problems - Unhandled request return Internal Server Error / Premature end of script headers

2009-08-06 Thread Graham Dumpleton
On Aug 7, 7:43 am, pcrutch wrote: > So I run the dev server for my project and everything comes up fine, > map shows properly and loads the data correctly. However, using wsgi > the map loads and gives " Unhandled request return Internal Server > Error" and I checked the log file and I have the

Re: Continuing problems running Django when not site Root.

2009-08-07 Thread Graham Dumpleton
Django since 1.0 onwards is usually fine with SCRIPT_NAME. Quite possibly you have tweaked something in settings or setup urls.py wrong to cause the issue. I would suggest you start over with a fresh Django installation and create the most minimal working example of what you are trying to do and w

Re: Mod_wsgi and Apache Problems - Unhandled request return Internal Server Error / Premature end of script headers

2009-08-08 Thread Graham Dumpleton
sages. Graham > - > my project .wsgi file > > import os, sys > sys.path.append('/home/patrick/geodj') > sys.path.append('/home/patrick/geodj/templates') > > os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' > > import d

Re: Mod_wsgi and Apache Problems - Unhandled request return Internal Server Error / Premature end of script headers

2009-08-08 Thread Graham Dumpleton
x27;ll have to wait until my sys admin is > > available on Monday to try Graham's vhost config suggestions...  I'm > > hoping that fixes it. > > > On Aug 8, 6:45 am, Graham Dumpleton > > wrote: > > > > On Aug 8, 5:22 pm, pcrutch wrote: > > > &g

Re: Apache2 permission denied problem

2009-08-09 Thread Graham Dumpleton
On Aug 9, 4:11 pm, Mac wrote: > Hi, > > I'm new to Django, and am trying to write a csv file and attach it to > an email that is sent upon completion of a sales order. All works fine > in the developement server, but when I switch to Apache2 I get an > error message that either says' No such fi

Re: How do I minimize memory usage with WSGI and Apache?

2009-08-09 Thread Graham Dumpleton
On Aug 10, 6:07 am, Jumpfroggy wrote: > I'm hosting a bunch of django apps on a shared host with 80MB of > application memory (Webfaction in this case).  I've got a bunch of > apps that are very infrequently used, but need to be online.  I've > already changed the httpd.conf: >     ServerLimit

Re: How do I minimize memory usage with WSGI and Apache?

2009-08-10 Thread Graham Dumpleton
On Aug 10, 8:44 pm, Dj Gilcrease wrote: > On Sun, Aug 9, 2009 at 4:17 PM, Graham > > Dumpleton wrote: > > On Aug 10, 6:07 am, Jumpfroggy wrote: > >> I'm hosting a bunch of django apps on a shared host with 80MB of > >> application memory (Webfacti

Re: How do I minimize memory usage with WSGI and Apache?

2009-08-10 Thread Graham Dumpleton
On Aug 11, 12:25 am, Dj Gilcrease wrote: > On Mon, Aug 10, 2009 at 6:43 AM, Graham > > Dumpleton wrote: > > These values for min and max threads are a bit dubious because you > > have a single process and that will have fixed 25 threads. Usually > > these

<    1   2   3   4   5   6   7   8   9   10   >