Re: Fastcgi always gives 301
Yup. My code is essentially the same thing as the one at the very bottom. I've tried 3 or 4 different fcgi scripts that people claim have worked with django, they all produce this though. As it turns out, I'm actually going to be moving to another server and probably using mod_fastcgi, so it's not so critical that I actually fix this. But I will keep my existing setup running that produces this so that if anyone has any ideas, we can maybe work out a solution. If you search the group archives, apparently people have had this problem before. And I'd bet if more people tried to deploy on shared- host FCGI, we'd see a lot more reports of it. --maqr On Oct 15, 4:32 pm, RajeshD <[EMAIL PROTECTED]> wrote: > On Oct 15, 10:23 am, maqr <[EMAIL PROTECTED]> wrote: > > > Does anyone have any suggestions as to why this 301 MOVED PERMANENTLY > > is the only response I can get out of my FCGI script? > > Did you follow the official FCGI docs over > here?http://www.djangoproject.com/documentation/fastcgi/ --~--~-~--~~~---~--~~ 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 always gives 301
Does anyone have any suggestions as to why this 301 MOVED PERMANENTLY is the only response I can get out of my FCGI script? I get this result when i run "python dispatch.fcgi" or when my browser runs it (and redirects me). The Django development server runs without any problem and serves up my little hello-world app without any difficulty. I am using Django trunk and Flup trunk, and the Flup example script runs fine and generates its "Hello World" over FastCGI with no trouble at all. My script is attached below, any help would be greatly appreciated, --dispatch.fcgi-- import sys import os sys.path.extend(['/home/maqr/django_projects/', '/home/maqr/ django_projects/proj/', '/home/maqr/local/lib/python2.5/site-packages/django/']) os.environ['DJANGO_SETTINGS_MODULE'] = 'proj.settings' from django.core.servers.fastcgi import runfastcgi runfastcgi(method="prefork", daemonize="false") """ Status: 301 MOVED PERMANENTLY content-type: text/html; charset=utf-8 location: http://localhost:80/ """ --maqr --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---