Re: FastCGI Shared host
Nothing? :( I'll keep hammering at the thing trying different things.. but I'm sad I can't get this to work with FastCGI at all. On Jun 19, 9:46 am, rtconner <[EMAIL PROTECTED]> wrote: > I set APPEND_SLASH to false, I no longer get the APPEND_SLASH error, > but I still get the WSGI errors. > > On Jun 19, 2:18 am, Jens Diemer <[EMAIL PROTECTED]> wrote: > > > rtconner schrieb: > > > > ~/www/django> python mysite.fcgi > > > ... > > > Traceback (most recent call last): > > > ... > > > if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not > > > in old_url[1].split('/')[-1]): > > > IndexError: string index out of range > > > Content-Type: text/html > > > This is probably the same problem like here: > >http://code.djangoproject.com/ticket/3414 > > > -- > > Mfg. > > > Jens Diemer > > > > > A django powered CMS:http://www.pylucid.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: FastCGI Shared host
I set APPEND_SLASH to false, I no longer get the APPEND_SLASH error, but I still get the WSGI errors. On Jun 19, 2:18 am, Jens Diemer <[EMAIL PROTECTED]> wrote: > rtconner schrieb: > > > ~/www/django> python mysite.fcgi > > ... > > Traceback (most recent call last): > > ... > > if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not > > in old_url[1].split('/')[-1]): > > IndexError: string index out of range > > Content-Type: text/html > > This is probably the same problem like here: >http://code.djangoproject.com/ticket/3414 > > -- > Mfg. > > Jens Diemer > > > A django powered CMS:http://www.pylucid.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: FastCGI Shared host
rtconner schrieb: > ~/www/django> python mysite.fcgi > ... > Traceback (most recent call last): > ... > if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not > in old_url[1].split('/')[-1]): > IndexError: string index out of range > Content-Type: text/html This is probably the same problem like here: http://code.djangoproject.com/ticket/3414 -- Mfg. Jens Diemer A django powered CMS: http://www.pylucid.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: FastCGI Shared host
On second though.. nope, I still get a ton of errors... WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI! WSGIServer: missing FastCGI param SERVER_NAME required by WSGI! WSGIServer: missing FastCGI param SERVER_PORT required by WSGI! WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI! etc, etc Its just no longer complains about ADD_SLASH. So why am I getting all of these errors? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: FastCGI Shared host
Dude was right, I turned APPEND_SLASH off it spit HTML out. Now it won't render in the browser. Freeking .htaccess problems I wager. On Jun 18, 8:19 pm, SmileyChris <[EMAIL PROTECTED]> wrote: > On Jun 19, 2:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > On Tue, 2007-06-19 at 01:54 +, rtconner wrote: > > > I followed the instruction at the bottom of this page: > > >http://www.djangoproject.com/documentation/fastcgi/ > > > I can't seem to get this running on a shared host. I've also try using > > > the WSGIHander against jonpy, but I can't get that to work either. Any > > > helps? > > > Based on the error message, [...] > > Actually, that's a common error message if I remember back to my fcgi > Dreamhost days. > > You can't just test the server like that (with > settings.APPEND_SLASH=True) because it chokes when there's nothing in > request.url to see if it ends with a slash. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: FastCGI Shared host
Python 2.4.3 ~/www/django> uname -a Linux 2.6.9-55.ELsmp #1 SMP Wed May 2 14:28:44 EDT 2007 i686 i686 i386 GNU/Linux It's a shared server. I can't control the python binary. I guess I could install virutal python, but that would be a pain, plus I think that only is python 2.4 also. On Jun 18, 8:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-06-19 at 01:54 +, rtconner wrote: > > I followed the instruction at the bottom of this page: > >http://www.djangoproject.com/documentation/fastcgi/ > > I can't seem to get this running on a shared host. I've also try using > > the WSGIHander against jonpy, but I can't get that to work either. Any > > helps? > > Based on the error message, I'm going to guess that you are using Ubuntu > Feisty with the Python 2.5.1c2 release. If that is the case, you need to > upgrade your Python package to 2.5.1 (2.5.1c2 was a pre-release with a > regression in it that Django hits). > > If that isn't the case, can you provide some details about your OS and > Python version, please? > > Regards, > Malcolm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: FastCGI Shared host
On Jun 19, 2:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-06-19 at 01:54 +, rtconner wrote: > > I followed the instruction at the bottom of this page: > >http://www.djangoproject.com/documentation/fastcgi/ > > I can't seem to get this running on a shared host. I've also try using > > the WSGIHander against jonpy, but I can't get that to work either. Any > > helps? > > Based on the error message, [...] Actually, that's a common error message if I remember back to my fcgi Dreamhost days. You can't just test the server like that (with settings.APPEND_SLASH=True) because it chokes when there's nothing in request.url to see if it ends with a slash. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: FastCGI Shared host
On Tue, 2007-06-19 at 01:54 +, rtconner wrote: > I followed the instruction at the bottom of this page: > http://www.djangoproject.com/documentation/fastcgi/ > I can't seem to get this running on a shared host. I've also try using > the WSGIHander against jonpy, but I can't get that to work either. Any > helps? Based on the error message, I'm going to guess that you are using Ubuntu Feisty with the Python 2.5.1c2 release. If that is the case, you need to upgrade your Python package to 2.5.1 (2.5.1c2 was a pre-release with a regression in it that Django hits). If that isn't the case, can you provide some details about your OS and Python version, please? Regards, Malcolm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
FastCGI Shared host
I followed the instruction at the bottom of this page: http://www.djangoproject.com/documentation/fastcgi/ I can't seem to get this running on a shared host. I've also try using the WSGIHander against jonpy, but I can't get that to work either. Any helps? ~/www/django> python mysite.fcgi WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI! WSGIServer: missing FastCGI param SERVER_NAME required by WSGI! WSGIServer: missing FastCGI param SERVER_PORT required by WSGI! WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI! Traceback (most recent call last): File "build/bdist.linux-i686/egg/flup/server/fcgi_base.py", line 558, in run File "build/bdist.linux-i686/egg/flup/server/fcgi_base.py", line 1112, in handler File "/home//lib/python2.4/site-packages/django/core/ handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/home//lib/python2.4/site-packages/django/core/ handlers/base.py", line 59, in get_response response = middleware_method(request) File "/home//lib/python2.4/site-packages/django/middleware/ common.py", line 41, in process_request if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not in old_url[1].split('/')[-1]): IndexError: string index out of range Content-Type: text/html Unhandled Exception Unhandled Exception An unhandled exception was thrown by the application. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---