Re: FastCGI Problems

2012-07-17 Thread Newt
I'm not entirely happy about. N. On Tuesday, 17 July 2012 22:00:33 UTC+1, Newt wrote: > > I've spent a little more time on this, and I've been trying out python > mysite.fcgi > > I've now got: > > os.environ["DJANGO_SETTINGS_MODULE"] = "set

Re: FastCGI Problems

2012-07-17 Thread Newt
.fcgi runs with no errors, then perhaps the website will also work... N. On Tuesday, July 17, 2012 12:01:00 AM UTC+1, Jarrett Chisholm wrote: > > Hey Newt, > > not sure if this is your problem, but I think > > os.environ["DJANGO_SETTINGS_MODULE"] = "settings.py&q

Django/Apache/FastCGI

2012-07-14 Thread Newt
I've spent a few days trying to get this to work on an Apache2 install. I have this in my httpd.conf file: Alias /django /stuff/django/proj1/proj1 Options +execCGI AllowOverride FileInfo Order allow,deny Allow from all This is the .htacess file: AddHandler f

FastCGI Problems

2012-07-14 Thread Newt
(Sorry if this is a repost - it isn't showing up in the groups for me) I've tried to set up Django to use a sub-directory on my local PC - I'm using Apache2.0. This is the relevant part from httpd.conf: Alias /django /stuff/django/proj1/proj1 Options +execCGI AllowOverride Fil

Re: Decimal to Decimal nightmare

2009-04-25 Thread Newt
u are only running the one web application on the server, > do things improve it you add directive: > >   PythonInterpreter main_interpreter > > to Apache configuration. > > If it doesn't, not the same issue as pyscopg2. > > Graham > > On Apr 25, 9:13 pm, Newt

Re: Decimal to Decimal nightmare

2009-04-25 Thread Newt
ago. Ales On Apr 25, 12:40 pm, Graham Dumpleton wrote: > On Apr 25, 12:37 am, Newt wrote: > > > > > Hello, > > > in my latest application I have models with like 15 Decimal fields, > > with different decimal places. > > > when I try to save an object of th

Re: Decimal to Decimal nightmare

2009-04-25 Thread Newt
e "/usr/lib/python2.5/decimal.py", line 617, in __new__ >     raise TypeError("Cannot convert %r to Decimal" % value) > TypeError: Cannot convert Decimal("0") to Decimal > > http://mail.python.org/pipermail/python-list/2008-May/665477.html > > On Apr 24, 3:37 pm

Decimal to Decimal nightmare

2009-04-24 Thread Newt
Hello, in my latest application I have models with like 15 Decimal fields, with different decimal places. when I try to save an object of that model, I get sometimes (often, but not always) this error: File "/home/newt/django/1.0/sites/cdms/item/views.py", line 1054, in