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

2009-01-03 Thread Graham Dumpleton
rmation you have already provided as what constitutes don't work and what exactly you were expecting to see. BTW, it is presumed you properly restarted Apache between making configuration changes. Graham > On Jan 3, 9:22 pm, Graham Dumpleton > wrote: > > > On Jan 4, 12:53 pm,

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

2009-01-03 Thread Graham Dumpleton
generic Apache HTTP error page with a simple test message? If so, what does the message say? Alternatively, does it appear that Django is triggered? That is, returning a working Django page, or an error page? If the correct content is returned, but styling is wrong and images don't show, can

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

2009-01-04 Thread Graham Dumpleton
> [Sun Jan 04 15:55:51 2009] [notice] Apache/2.2.8 (Unix) DAV/2 mod_jk/ > 1.2.26 PHP/5.2.6 mod_python/3.3.1 Python/2.5 mod_ssl/2.2.8 OpenSSL/ > 0.9.8b mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal > operations > > I do currently have two separate IP addresses for the sites,

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

2009-01-04 Thread Graham Dumpleton
n the is being read, > but there are no errors popping up related to it. i've change the *:80 > to other numbers and have received errors > > On Jan 4, 4:47 pm, Graham Dumpleton > wrote: > > > Where exactly is the snippet file containing the Apache configuration >

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

2009-01-04 Thread Graham Dumpleton
thing else that needs to be set up for the > VirtualHost to work? > > On Jan 4, 5:44 pm, Graham Dumpleton > wrote: > > > On Jan 5, 8:54 am, garagefan wrote: > > > > Starting httpd: Syntax error on line 1 of /etc/httpd/conf.d/ > > > python.conf: &

Re: Environment variables in WSGIScriptAlias? (ie, dynamic Django virtual hosts)

2009-01-04 Thread Graham Dumpleton
I'll be answering this over on mod_wsgi list. Discussion thread is: http://groups.google.com/group/modwsgi/browse_frm/thread/c29dde8fbef68e0b if others are interested in the answer. Graham On Jan 5, 10:30 am, Fotinakis wrote: > I am using mod_wsgi in embedded mode and attempting to make an

Re: File upload failing occasionally

2009-01-04 Thread Graham Dumpleton
On Jan 5, 10:24 am, ppdo wrote: > Hi all, > > I am trying to port my first Django 1.0.2 application to run on OSX/ > Leopard with Apache + mod_python 3.3.1 + python 2.6.1 (all running in > 64-bit mode) and I am experiencing an occasional error when uploading > a file that was not present when t

Re: Could someone help me understand the finer points of import

2009-01-04 Thread Graham Dumpleton
On Jan 5, 1:29 pm, Mark Jones wrote: > For the discussion below, ALL the code is in .../intomec/tenq > > I wrote some code in tests.py like so: > >    from tenq.models import * >         self.expectedValue = Answers((1,2,3,4)) > > within the to_python() method of AnswersField in models.py: >  

Re: File upload failing occasionally

2009-01-05 Thread Graham Dumpleton
Sorry, some more questions. How big are the files you are trying to upload? What browser/client are you using to do the uploads? What do you have Timeout directive set to in Apache configuration? Graham On Jan 5, 6:24 pm, ppdo wrote: > Hi, > > Thanks for looking into this. I used embedded mo

Re: File upload failing occasionally

2009-01-05 Thread Graham Dumpleton
On Jan 5, 8:33 pm, ppdo wrote: > The failure does not depend on the file size: I manage to upload files > bigger than 60 MB and fail on 30 kB files. > > I tried with Safari and Firefox and I got the same results, though I > got the *impression* (but given the randomness of the problem I am not

Re: File upload failing occasionally

2009-01-05 Thread Graham Dumpleton
On Jan 6, 9:30 am, ppdo wrote: > I tried to monitor the interface using WireShark and the communication > just hangs during a data transfer: Apache is just acknowledging the > receipt of some packets and then just seems to hang. The suspicious > bit is a fairly long series of http RST about 20m

Re: IOError: request data read error

2009-01-05 Thread Graham Dumpleton
On Jan 6, 4:41 am, Chunlei Wu wrote: > Hi, > >        We have a web app running on Django 1.0 / modwsgi 2.0 / Apache Latest mod_wsgi is 2.3, you should really think about upgrading. :-) > 2.2.3. Sparsely, about 2~3 times a week, I receive emails about > IOError as below: > > ... >   File "/p

Re: Is there an easy way to test ssl protected pages in development server??

2009-01-05 Thread Graham Dumpleton
On Jan 6, 3:02 am, madhav wrote: > Is there an easy way to test ssl protected pages in development > server? Normally I will be doing the testing by accessing the same > urls with http and not https in dev server. Is this the only way? You may be better of setting up a instance of Apache with

Re: IOError: request data read error

2009-01-06 Thread Graham Dumpleton
r code or Django isn't doing anything specifically about that and just passing it back, you will get the same behaviour as you do now. Graham > Chunlei > > On Jan 5, 3:40 pm, Graham Dumpleton > wrote: > > > On Jan 6, 4:41 am, Chunlei  Wu wrote: > > > > Hi, > &g

Re: File upload failing occasionally

2009-01-06 Thread Graham Dumpleton
On Jan 6, 10:31 pm, ppdo wrote: > To Karen: yes, I meant TCP RST, sorry. > > Update: > > Using mod_wsgi made the problem go away for Firefox. > > Limiting my research to an interaction problem between Apache and > Safari, I stumbled upon this bug report for Apache > https://bugs.webkit.org/show

Re: Returning large files from a view

2009-01-07 Thread Graham Dumpleton
Ultimately what they really need is: View-03 wsgi.file_wrapper for large file serving from: http://code.djangoproject.com/wiki/Version1.1Features At least then it will be optimal for WSGI case. Graham On Jan 8, 10:42 am, bruno desthuilliers wrote: > On 8 jan, 00:15, bruno desthuil

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread Graham Dumpleton
On Jan 10, 4:21 am, lenin wrote: > Hello, > > I would like to know if you could help me solve an issue with my > server setup. I have a Django application running with mod_wsgi on > apache with nginx as frontend, and it got very popular so the server > gets more than 1 requests a day. The a

Re: What's the best configuration for Apache + mod_wsgi + nginx

2009-01-09 Thread Graham Dumpleton
g kick to the youtube video url. Although > at this moment I have disabled the formats that need conversion. > > I'm using mysql for the database and it is on the same server, but it > really doesn't do a lot of queries. > > I have memcached but I only cache the list of latest v

Re: deploying a project

2009-01-10 Thread Graham Dumpleton
On Jan 10, 7:32 pm, Alan wrote: > I use mac book pro, and I didn't like the way I have to set put apache2 + > mod_wsgi in mac osx... poor documentation by the way. > I will give a 2nd thought about it. Huh, what are you talking about? The mod_wsgi package builds against Apple supplied Apache

Re: deploying a project

2009-01-10 Thread Graham Dumpleton
q=mod_wsgi&ie=UTF-8&oe=UTF-8 Should yield: http://www.modwsgi.org Graham > Cheers, > Alan > > On Sat, Jan 10, 2009 at 09:04, Graham Dumpleton > wrote: > > > > > > > On Jan 10, 7:32 pm, Alan wrote: > > > I use mac book pro, and I didn't

Re: dynamic mod wsgi

2009-01-11 Thread Graham Dumpleton
wsgi list where that thread is in general better for me as it then comes in my mail box and don't miss it, where as just browse here occasionally so don't always pick up posts. Graham > On 23 Dec 2008, at 01:13, Graham Dumpleton wrote: > > > > > Have some further questi

Re: def clean_file works with django server but not with apache

2009-01-11 Thread Graham Dumpleton
Answered at: http://groups.google.com/group/modwsgi/browse_frm/thread/6af0cf98b726e5fe Graham On Jan 11, 11:59 pm, Alan wrote: > Oops, I found something. I am using apache2 + mod_wsgi and I notice that > instead of using my Fink python ('/sw/bin/python') it's using my mac python > ('/usr/bin

Re: 'No such file or directory' error, but not in shell or development server?

2009-01-13 Thread Graham Dumpleton
On Jan 14, 2:51 pm, OwenK wrote: > I've made a dictionary site that relies on a text file to look up > entries. The function that calls it works fine in the shell or in the > development server, but when I try to use it with mod_python/apache it > gives me an IOError errno 2, No such file or di

Re: mod_python 3.3.1, Python 2.4.6, Apache 2.2.9 (MacPorts) on Mac OS X 10.5.6 (Leopard)

2009-01-14 Thread Graham Dumpleton
Use mod_wsgi instead, it should set up compiler flags correctly even for fussy MacPorts. I can't remember if I rolled those changes into mod_python in subversion trunk. If still want to try mod_python though use: svn co https://svn.apache.org/repos/asf/quetzalcoatl/mod_python/trunk mod_python-t

Re: Slow application performance...

2009-01-14 Thread Graham Dumpleton
As before, if you can move to mod_wsgi and use its daemon mode try that as first step. This will eliminate memory swapping issues and other issues around startup cost of Apache child processes loading Django. Also gives a more predictable environment in which can then start doing testing as to how

Re: Seperate project in a subdirectory (Apache 2.2 & mod_python)

2008-07-14 Thread Graham Dumpleton
What order are you including them in the Apache configuration? Have you tried switching the order? Graham On Jul 15, 7:50 am, "Chris H." <[EMAIL PROTECTED]> wrote: > Trying to run a separate Django project in a sub-directory while the > main project runs in the root.  I'm using Apache 2.2 andmo

Re: wsgi and os.environ

2008-07-15 Thread Graham Dumpleton
On Jul 15, 9:54 pm, "Ian Lawrence" <[EMAIL PROTECTED]> wrote: > Hi, > I am experimenting with wsgi. I saw that this can be one way to enable it: > > os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' > > this seems a little strange to me setting something global to your > process. Is this be

Re: how to use PythonAuthzHandler with django?

2008-07-15 Thread Graham Dumpleton
FWIW, authen/authz for Apache is much easier done in mod_wsgi. See: http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms I have given up trying to help people with mod_python authen/authz because it is such a PITA. :-) Graham On Jul 15, 9:29 pm, "Viktor Nagy" <[EMAIL PROTECTED]> wro

Re: .pyc files not being created

2008-07-15 Thread Graham Dumpleton
On Jul 15, 8:29 am, blis102 <[EMAIL PROTECTED]> wrote: > Hey all, > > On my Ubuntu server with Apache2 +mod_python, I cant seem to get > the .py files to compile like they should (I see no .pyc files in my > "src" folder like I do locally). I believe I have proper permissions > set (775), but am

Re: Faking out mod_python

2008-07-16 Thread Graham Dumpleton
On Jul 17, 5:24 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > We're running a production setup with nginx running in front of > apaches runningmod_python. Nginx is decoding all ssl and reverse > proxying (the decrypted requests) to apache on the backend. We > recently upgradedmod_pythonand

Re: PATH problem?

2008-07-18 Thread Graham Dumpleton
On Jul 19, 7:24 am, "Álvaro J. Iradier" <[EMAIL PROTECTED]> wrote: > Maybe this can be related: > > https://devel.airadier.com/default/blog/modpythonvirtualenvironments > > I found the same problem, modules being imported from the command line > interpreter, but not frommod_python, and managed t

Re: Django Deploy

2008-07-20 Thread Graham Dumpleton
Are you targeting mod_python or mod_wsgi? On Jul 21, 8:33 am, DoctorMO <[EMAIL PROTECTED]> wrote: > Hey all, > > In order to deploy multiple django based websites I've created a set > of scripts which build the setup.py and debian directory for deb based > deployment of django websites. At the mo

Re: Browser timeout on long processes

2008-08-19 Thread Graham Dumpleton
On Aug 20, 11:05 am, Julien Phalip <[EMAIL PROTECTED]> wrote: > Hi, > > You could use Ajax for this. The client could periodically (say, every > second) send a request to the server asking if the calculation is > over. When the calculation is over, a flag would be set (in the > server's cache, for

Re: Django with Apache messing up with my settings.py

2008-08-26 Thread Graham Dumpleton
On Aug 26, 5:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-08-25 at 23:45 -0700, mario wrote: > > [...] > > > > > And here's how I defined the apps in Apache2 (running with lastest > > Django SVN). > > > > >     SetHandler python-program > >     PythonPath "['/var/www/myap

Re: Odd error when executing "runserver"

2008-08-28 Thread Graham Dumpleton
On Aug 29, 6:43 am, Huuuze <[EMAIL PROTECTED]> wrote: > I recently installed PostgreSQL 8.3.3 and psycopg 2 (latest from > SVN). When I attempt to start Django, I receive this error: > > File "/Library/Python/2.5/site-packages/django/db/backends/ > postgresql_psycopg2/base.py", line 20, in >

Re: Using http header information in settings.py

2008-08-29 Thread Graham Dumpleton
On Aug 29, 8:50 pm, Erik Allik <[EMAIL PROTECTED]> wrote: > For the iPhone templates issue, I'd set up two projects instead of one   > -- one for regular browsers, one for the iPhone. Then I'd simply   > redirect from the regular one to the iPhone one as needed. Although   > this has the negative

Re: Using http header information in settings.py

2008-08-29 Thread Graham Dumpleton
quire too > many instances of django. > > Graham: Wow, that is a lot :).  In addition to what I mentioned above, > I would like all this to be as easy as possible to configure (the > software will be distributed). > > --Greg > > On Aug 29, 8:00 am, Graham Dumpleton &l

Re: URL configuration with Django deployed in a subdirectory

2008-08-29 Thread Graham Dumpleton
On Aug 30, 5:40 am, bryanzera <[EMAIL PROTECTED]> wrote: > I am a new Django user with Django 0.96 deployed in a sub-directory > under our main document root.  My problem is that I cannot get my URL > configuration to work. > > Inside the Django-deployed subdirectory, I have the following urls.p

Re: Installing django on 10.4 os x and i cant figure this one out.

2008-08-31 Thread Graham Dumpleton
Jason Ourscene wrote: > I have some minor programming background. mainly php. > Ive been trying to install python and django for the last 3 hours. > I've gotten to the point where i have everything working. But when i > run the django-admin.py script i get the following error > > Traceback (most

Re: Installing django on 10.4 os x and i cant figure this one out.

2008-08-31 Thread Graham Dumpleton
How are you running 'django-admin.py' and what is the first line of that file? Graham On Sep 1, 1:23 am, Jason Ourscene <[EMAIL PROTECTED]> wrote: > when i run ls -las /usr/bin/python i get: > 8 lrwxr-xr-x   1 root  wheel  9 Jul 21 22:50 /usr/bin/python -> > python2.3 > > when run "which python"

Re: Installing django on 10.4 os x and i cant figure this one out.

2008-09-02 Thread Graham Dumpleton
To see what is happening now with PATHs, run: echo $PATH and post that as well. Graham > ps. graham, thanks for the forum etiquette lesson.. im new to this. =] > > On Aug 31, 7:50 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > How are you running '

Re: Setting up Django in apache

2008-09-03 Thread Graham Dumpleton
On Sep 4, 1:28 pm, Pepsi330ml <[EMAIL PROTECTED]> wrote: > Hi > > Forget to add on. I am using Django version 0.96. > Don't intend to upgrade to version 1.0 now. > > Thus i cannot use the PythonOption django.root > Is there other alternative? >From memory the answer is 'No'. Graham --~--~---

Re: Everything is working but modpython

2008-09-03 Thread Graham Dumpleton
Run command line 'python' you used to install Django and then go: $ python Python 2.3.5 (#1, Mar 20 2005, 20:38:20) [GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> django.__file__ '/System/

Re: changing code = restarting django??

2008-09-05 Thread Graham Dumpleton
On Sep 5, 11:24 pm, "Hernan Olivera" <[EMAIL PROTECTED]> wrote: > >> In php when you change the code there is no need to restart the > >> server, but in j2ee its necessary to recompile everything. how does > >> that work in django? > > You can also configure apache to reload de code. There is a

Re: error setting up apache

2008-09-05 Thread Graham Dumpleton
On Sep 5, 11:21 pm, PeteDK <[EMAIL PROTECTED]> wrote: > Hi Im an trying to deploy my django app to an apache server. However i > keep getting a 500 internal server error. > > i have followed this > guide:http://fosswire.com/2008/05/19/installing-mod_python-and-django-on-ap... > > in my httpd.co

Re: changing code = restarting django??

2008-09-05 Thread Graham Dumpleton
On Sep 6, 2:39 am, Ilya Braude <[EMAIL PROTECTED]> wrote: > Hernan Olivera wrote: > >>> In php when you change the code there is no need to restart the > >>> server, but in j2ee its necessary to recompile everything. how does > >>> that work in django? > > > You can also configure apache to relo

Re: Deployment help needed Django + Interchange

2008-09-05 Thread Graham Dumpleton
Have you read the mod_python hosting documentation at all? http://docs.djangoproject.com/en/dev/howto/deployment/modpython/ Graham On Sep 6, 10:19 am, macgregor <[EMAIL PROTECTED]> wrote: > I'm working on a site that runs on Interchange (http://www.icdevgroup.com/) > and I am wanting to add

Re: Deployment help needed Django + Interchange

2008-09-06 Thread Graham Dumpleton
go project running (at Location "/ > mysite/"> possibly) and then direct requests tohttp://www.example.com/blog/ > to the blog app inside my project and sendhttp://www.example.com/testimonials/ > to the testimonials app inside my project. > > On Sep 5, 6:47 pm, Graham Du

Re: apache mysql problem

2008-09-06 Thread Graham Dumpleton
PeteDK wrote: > Hi everybody... > > I am trying to setup my apache webserver on a CentOS machine. I'm > almost there(i hope) > > however i keep getting a weird error message. Weird in the sense that > i can easily connect to the same mysqldb when using the local > development server but not when

Re: Persistent Global Imports

2008-09-11 Thread Graham Dumpleton
On Sep 11, 3:24 pm, Chris <[EMAIL PROTECTED]> wrote: > I have an application that uses some large packages, such as Wordnet, > and the imports can take awhile. Is there a mechanism in Django to > persist imported package across requests? I'm running Django viamod_wsgi, and > it seems to re-impo

Re: Persistent Global Imports

2008-09-11 Thread Graham Dumpleton
On Sep 12, 10:35 am, "Chris Spencer" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 11, 2008 at 6:16 AM, Graham Dumpleton > > > > <[EMAIL PROTECTED]> wrote: > > Be aware that Apache/mod_wsgi in embedded mode on UNIX is going to be > > multiprocess.

Re: ***SPAM*** A trick to force autoreloading, in case of changes in views.py

2008-09-12 Thread Graham Dumpleton
On Sep 12, 11:36 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote: > Hi, > > I use apachemod_wsgi(WSGIDaemonProcess) and for development > maximum-requests=1. > > This way I don't need to change any code for reloading: Just hit ctrl-r > (reload in firefox). I would recommend against maximum-reques

Re: Persistent Global Imports

2008-09-14 Thread Graham Dumpleton
y Apache log: > > >> [Sun Sep 14 23:26:09 2008] [error] [client 127.0.0.1] (13)Permission > >> denied: mod_wsgi (pid=344): Unable to connect to WSGI daemon process > >> 'myapp' on '/etc/httpd/logs/wsgi.28572.2.1.sock' after multiple > >> at

Re: Odd error when executing "runserver"

2008-09-16 Thread Graham Dumpleton
On Sep 17, 3:02 pm, "Whyneedsgoogle2know?" <[EMAIL PROTECTED]> wrote: > Graham Dumpleton wrote: > > On Aug 29, 6:43 am, Huuuze <[EMAIL PROTECTED]> wrote: > > > > Is this an issue with Django, psycopg, or both? > > > The error 'Image not

Re: Odd error when executing "runserver"

2008-09-16 Thread Graham Dumpleton
On Sep 17, 3:02 pm, "Whyneedsgoogle2know?" <[EMAIL PROTECTED]> wrote: > Graham Dumpleton wrote: > > On Aug 29, 6:43 am, Huuuze <[EMAIL PROTECTED]> wrote: > > > > Is this an issue with Django, psycopg, or both? > > > The error 'Image not

Re: Odd error when executing "runserver"

2008-09-17 Thread Graham Dumpleton
On Sep 18, 1:03 am, "Whyneedsgoogle2know?" <[EMAIL PROTECTED]> wrote: > > > Traceback (most recent call last): > > > File "", line 1, in > > > File "/usr/lib/python2.5/site-packages/psycopg2/__init__.py", line > > > 60, in > > > from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID > >

Re: FileSystemStorage preventing large file uploads

2008-09-18 Thread Graham Dumpleton
On Sep 18, 7:35 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Better to set the upload filesize limit on your server eg Apache's has > a directive for max file size. Otherwise the file will be uploaded and > checked anyway. If using mod_python, the Apache LimitRequestBody directive doesn

Re: FileSystemStorage preventing large file uploads

2008-09-18 Thread Graham Dumpleton
On Sep 18, 8:56 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Wiadomość napisana w dniu 2008-09-18, o godz. 13:01, przez Donn: > > >> If using mod_python, the Apache LimitRequestBody directive doesn't > >> work entirely properly. > > I have heard of a "Content-length" variable (from PHP, but it's

Re: FileSystemStorage preventing large file uploads

2008-09-18 Thread Graham Dumpleton
On Sep 18, 9:28 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Wiadomość napisana w dniu 2008-09-18, o godz. 13:17, przez Graham   > Dumpleton: > > > > >>>> If using mod_python, the Apache LimitRequestBody directive doesn't > >>>> work en

Re: FileSystemStorage preventing large file uploads

2008-09-18 Thread Graham Dumpleton
On Sep 18, 9:41 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Wiadomość napisana w dniu 2008-09-18, o godz. 13:33, przez Graham   > Dumpleton: > > > > >>>>>> Now, where on earth have you got this idea that you can not   > >>>>>>

Re: geodjango apache vs lighttpd

2008-09-23 Thread Graham Dumpleton
On Sep 24, 6:47 am, Jashugan <[EMAIL PROTECTED]> wrote: > Did you switched from Apache + mod_python to Lighttpd + FCGI? If so, > are you sure it wasn't a problem with mod_python versus Apache in > general? I'm having some issues with mod_python unrelated to > geodjango. It seems there are certain

Re: python-ldap + Apache causing errors

2008-09-23 Thread Graham Dumpleton
On Sep 24, 4:39 am, Jashugan <[EMAIL PROTECTED]> wrote: > Hello, > > I am having a problem when using python-ldap with Apache. I added an > authentication backend based on ldapauth.py, and it works fine when > running from the Django server. However, when I use Apache I get the > following error

Re: Admin redirecting to wrong URL?

2008-09-23 Thread Graham Dumpleton
On Sep 24, 5:43 am, Allan <[EMAIL PROTECTED]> wrote: > My application is working well at mysite.com/django/, and I get > an admin login at            mysite.com/django/admin/ -- but when I > enter my credentials, I seem to be redirected to            mysite.com/ > admin/ (which is a 404 error).

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Graham Dumpleton
How are you hosting Django? It would help to know if you are using builtin development server or whether you are hosting under Apache using mod_python or mod_wsgi. If under Apache then use of certain Apache configuration settings can cause 500 errors to be returned instead of 404 errors. No point

Re: Django-Apache configuration in Fedora 9

2008-09-23 Thread Graham Dumpleton
On Sep 24, 3:27 pm, Harish <[EMAIL PROTECTED]> wrote: > hi folks, > >         i am trying to configure a project which is developed using > django. > Now I am trying to host it in web server (using Apache2), which is > running in  Fedora 9. > > I tried with the instruction given in the following

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-24 Thread Graham Dumpleton
is because the client would then never see the 401 response and always get a 500 error response instead. This may not explain your situation, but is a problem that can occur and it isn't really obvious what is happening. Graham > Thanks, > Ross > > On Sep 23, 5:08 pm, Graham Dumpl

Re: Multiple instances using mod_python

2008-09-24 Thread Graham Dumpleton
On Sep 25, 12:52 am, "Scott Moonen" <[EMAIL PROTECTED]> wrote: > I'm running a single instance of Apache to serve two IP addresses.  One IP > address has specific hostnames assigned in several VirtualHosts, and a > Location statement for certain hostnames to be handled by a mod_python > instance

Re: python-ldap + Apache causing errors

2008-09-24 Thread Graham Dumpleton
On Sep 25, 12:30 am, Jashugan <[EMAIL PROTECTED]> wrote: > > The problem is most like because some other Apache module, eg. PHP or > > mod_auth_ldap, is loading an incompatible version/variant of LDAP > > client libraries before the Python ldap module does. > > > Thus, check what versions of LDA

Re: Multiple instances using mod_python

2008-09-24 Thread Graham Dumpleton
The problem is more fundamental than that and virtual environments would not help. This is because it relates to which Python sub interpreter instance is selected and not where modules may be imported from for a specific sub interpreter instance. Graham On Sep 25, 5:12 am, "Álvaro J. Iradier" <[

Re: Admin redirecting to wrong URL?

2008-09-24 Thread Graham Dumpleton
ted at a sub URL. Graham > Allan -- Atlanta > > On Sep 23, 8:04 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > On Sep 24, 5:43 am, Allan <[EMAIL PROTECTED]> wrote: > > > > My application is working well at mysite.com/django/, and I get > > >

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-25 Thread Graham Dumpleton
On Sep 25, 10:58 am, shacker <[EMAIL PROTECTED]> wrote: > On Sep 24, 4:34 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > If however you have used in Apache configuration the ErrorDocument > > directive for 404 at some point, possibly by enablin

Re: Multiple instances using mod_python

2008-09-25 Thread Graham Dumpleton
On Sep 25, 8:29 pm, "n00m" <[EMAIL PROTECTED]> wrote: > what if to rename mod_python.so to mod_python_1.so and mod_python_2.so and > keep them both > in apache's modules and run them as if they are different beasts. You cannot do that. If you are wanting process separation then use mod_wsgi daem

Re: Apache with home directory Django

2008-09-25 Thread Graham Dumpleton
On Sep 26, 8:26 am, "Xian Chen" <[EMAIL PROTECTED]> wrote: > Hi, > > I want to run my Django app on a shared web server. > > As so many people share this server, I install python and Django(1.0) under > my home directory. > > How can I configure the Apache with mod_python to make the django under

Re: Apache with home directory Django

2008-09-26 Thread Graham Dumpleton
gt; set up a completely customized environment for your project. > > If you have SSH access to the hosting machine which you hopefully do, > you should be able to compile anything you might need for the > environment such as database drivers or PIL and any other extensions > that requi

Re: actual django stack

2008-09-28 Thread Graham Dumpleton
On Sep 28, 10:47 am, Jeremy Sandell <[EMAIL PROTECTED]> wrote: > On Sep 26, 1:25 pm, David Zhou <[EMAIL PROTECTED]> wrote: > > > > > I've also heard good things about WSGI -- though I haven't heavily   > > tested its stability compared to, say,mod_python. > > --- > > David Zhou > > [EMAIL PROTEC

Re: apache PythonPath problem + solution

2008-09-28 Thread Graham Dumpleton
Your solution was what the documentation tells you to do. I still contend that the documentation could better explain this, but when I pushed that in the past others felt it was clear enough already. Despite that, people still have problems, that or people don't actually read the documentation. :

Re: accessing the http conf setting: PythonOption django.root

2008-09-29 Thread Graham Dumpleton
On Sep 30, 12:20 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-09-29 at 18:57 -0700, felix wrote: > > I'm trying to fix some urls in my templates > > > these are urls linking to the admins site that cannot use the {% url > > %} tag or reverse. > > > these urls are "absolute" i

Re: Using mod_python with Lighttpd - advice on the best set up

2008-09-30 Thread Graham Dumpleton
On Sep 30, 8:24 pm, Kip Parker <[EMAIL PROTECTED]> wrote: > After both your replies and some googling I'm starting to lean towards > a FastCGI set up of some sort. The only thing that worries me is > dealing with FastCGI crashes, I guess you need a process watcher for > each site/FastCGI instanc

Re: DeprecationWarning: Non-ASCII character in models.py

2008-09-30 Thread Graham Dumpleton
Have you read the PEP it refers to? Graham On Sep 30, 9:07 pm, Nick <[EMAIL PROTECTED]> wrote: > Hi, > > I've recently noticed that I'm getting the following in my Apache > error log... > > DeprecationWarning: Non-ASCII character '\xc2' in file /var/www/django/ > newsite/web/models.py on line 10

Re: accessing the http conf setting: PythonOption django.root

2008-09-30 Thread Graham Dumpleton
    return context['request'].META['SCRIPT_NAME'] > > thanks Graham > > On Sep 30, 4:28 am, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > > > But when you do go looking, don't think that accessing 'django.root' > &g

Re: Django on Apache (mod_python) administration cookie problem

2008-09-30 Thread Graham Dumpleton
On Oct 1, 10:56 am, Álvaro Justen <[EMAIL PROTECTED]> wrote: > Daniel bodom_lx Graziotin wrote: > > Hi everybody! I'm a new Django developer and for learning the > > framework I decided to create (another) pastebin clone that I > > published onhttp://incollo.com > > The application works very we

Re: mod_wsgi and 500 error

2008-10-02 Thread Graham Dumpleton
On Oct 2, 3:41 pm, "Patrick J. Anderson" <[EMAIL PROTECTED]> wrote: > I'm running mod_wsgi, and I'm wondering if anybody else who uses mod_wsgi   > has experienced problems with Django directing requests to 500.html   > template when the server returns 500 status code. > > Is there any configura

Re: Difference between forked and threaded fastcgi mode?

2008-10-02 Thread Graham Dumpleton
On Oct 3, 9:31 am, chiggsy <[EMAIL PROTECTED]> wrote: > I want to run django via fastcgi, fronting it with nginx.  Now, from > the help, I see there are 2 options: > >   method=IMPL          prefork or threaded (default prefork) > > What are the pros and cons of the threaded model?  I'm tending

Re: Django site speed - I think I have a problem with my config!

2008-10-03 Thread Graham Dumpleton
[EMAIL PROTECTED] wrote: > Hi guys, > > Firstly, I want to say that I've had some great help from you guys so > far - you've really helped me solve a lot of problems. I'm looking > forward to the time when I have enough experience to answer other > questions! > > Anyway...I'm having quite a bit

Re: python-ldap + Apache causing errors

2008-10-04 Thread Graham Dumpleton
it. If you create a separate discussion on mod_wsgi list, will at least sit there to remind me and can do some more research on it again. Graham On Oct 4, 8:29 am, Jashugan <[EMAIL PROTECTED]> wrote: > On Sep 24, 5:05 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > >

Re: Mod_python

2008-10-04 Thread Graham Dumpleton
On Oct 4, 2:07 am, djandrow <[EMAIL PROTECTED]> wrote: > I just bought a new laptop and want to install mod_python, is there a > version which is compatible with Python 2.6, I tried the 2.5 version > but it wouldn't let me install that with 2.6. If there isn't a 2.5 > version what would people r

Re: Double encoded slash in path_info removed when using apache/wsgi

2008-10-08 Thread Graham Dumpleton
On Oct 8, 5:57 pm, Merrick <[EMAIL PROTECTED]> wrote: > Could this problem be in the wsgi.py handler in django? If not I > suppose I need to look at mod_wsgi and quit asking here :) It is how Apache works and there is possibly not much you can do about it. In Apache 1.3, repeating slashes can

Re: GeoDjango - Ogr seg fault

2008-10-10 Thread Graham Dumpleton
In that case, would be a shared library version conflict where PHP components are compiled against different shared library version or variant than what Python modules are using. Graham On Oct 11, 12:36 am, guillaume <[EMAIL PROTECTED]> wrote: > Ok, I've found the answer myself : > it happens wh

Re: GeoDjango - Ogr seg fault

2008-10-10 Thread Graham Dumpleton
Try forcing application to run in main Python interpreter. PythonInterpreter main_interpreter. Graham On Oct 11, 12:01 am, guillaume <[EMAIL PROTECTED]> wrote: > Hi, > > I'm experiencing trouble when using geodjango.gdal : > from a standard python console, pnt = OGRGeometry(someWKT) goes fine

Re: Building Django web application

2008-10-10 Thread Graham Dumpleton
On Oct 11, 9:23 am, mguthrie <[EMAIL PROTECTED]> wrote: > I had read in more than one place that a django instance can eat up to > 10mb - 30mb of memory.  I don't know whether that is fact or fiction > and I'm also confused by the term instance.  Is an instance defined as > multiple different Dj

Re: Building Django web application

2008-10-11 Thread Graham Dumpleton
On Oct 11, 12:53 pm, mguthrie <[EMAIL PROTECTED]> wrote: >   Discussing all of this has made me re-think my approach and whether > Django will be a good fit for this specific project.  It may be better > for me to simply use a different python framework and let the client > separation be handled

Re: fastCGI: always one server per site ?

2008-10-13 Thread Graham Dumpleton
On Oct 13, 8:43 pm, "Valts Mazurs" <[EMAIL PROTECTED]> wrote: > On Mon, Oct 13, 2008 at 12:15 PM, xavier dutoit <[EMAIL PROTECTED]> wrote: > > Thanks for your reply. I do already run php under fcgi (as separated > > server, as you point out). But the main difference is that this pool > > of fcgi

Re: Django server crashes without error

2008-10-15 Thread Graham Dumpleton
On Oct 15, 6:22 pm, ccpn <[EMAIL PROTECTED]> wrote: > We are building a django site that involves uploading and processing > of files. We have found that in some instances the server quits after > starting the upload process, leaving us with a blank screen. The > problem is that Django is not re

Re: Django server crashes without error

2008-10-15 Thread Graham Dumpleton
On Oct 16, 1:34 am, ccpn <[EMAIL PROTECTED]> wrote: > On Oct 15, 1:08 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > > > On Oct 15, 6:22 pm, ccpn <[EMAIL PROTECTED]> wrote: > > > > We are building a django site that involves uploadin

Re: Deploy application in bytecode

2008-10-15 Thread Graham Dumpleton
On Oct 16, 3:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I agree with you, but I am an officer and my boss likes of things > well, then, I am trying to bring a legal solution for him with Django, > I came to dot.net where the code is compiled. > > In this situation, pass the .pyc fil

Re: unable to get rid of app name via rewrite

2008-10-15 Thread Graham Dumpleton
On Oct 16, 4:32 pm, "Jim Zhan" <[EMAIL PROTECTED]> wrote: > Thanks Guys, I now finally realise that is not possible to achieve this via > any external configuration like webserver/settings.py, as the app name is > already defined in the urls.py unless we change ^app/$ to ^$ for the > application

Re: Figuring out prefork v. worker

2008-10-16 Thread Graham Dumpleton
On Oct 17, 7:14 am, Doug Van Horn <[EMAIL PROTECTED]> wrote: > I run several applications on a Slicehost VPS and I recently switched > them to run the worker MPM andmod_wsgi. > > After switching, I ran into an issue with the worker MPM leaking > timezone information across django applications (act

Re: Django server crashes without error

2008-10-17 Thread Graham Dumpleton
The crashes still occur though. Is there any logfile that tracks what > is going wrong? > Chris > > On Oct 16, 1:19 am, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > On Oct 16, 1:34 am, ccpn <[EMAIL PROTECTED]> wrote: > > > > On Oct 15, 1:08 pm, Gra

Re: Django crashes Python without traceback on Mac OS X (Release 1.0)

2008-10-19 Thread Graham Dumpleton
On Oct 20, 11:34 am, "jd.strickler" <[EMAIL PROTECTED]> wrote: > Just as a heads up: if you have a 64-bit Intel chip running OS X > > The cross-compiling/Universal Binary issue may come up to bite you (it > did me).  Apache runs in 64-bit mode while most of the system runs in > 32-bit mode,

Re: mod_python 3.3.1, Python 2.4.6, Apache 2.2.9 (MacPorts) on Mac OS X 10.5.6 (Leopard)

2009-01-15 Thread Graham Dumpleton
he_and_mod_wsgi More detailed information in: http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide Graham > On Jan 14, 11:19 pm, Graham Dumpleton > wrote: > > > Use mod_wsgi instead, it should set up compile

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