Django with FastCGI doesn't works

11 views
Skip to first unread message

geonomos

unread,
Jun 25, 2011, 4:24:02 AM6/25/11
to django...@googlegroups.com
Hi,
I'm new in django frameworck and I'm tring to develop a simple application.
I've a free account in alwaysdata and I've follow instruction in "https://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/?from=olddocs#running-django-on-a-shared-hosting-provider-with-apache" but if I point with the browser to the  application's url I see only the content of django.fcgi:
#########
#!/usr/bin/python
import os, sys

_PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, _PROJECT_DIR)
sys.path.insert(0, os.path.dirname(_PROJECT_DIR))

_PROJECT_NAME = _PROJECT_DIR.split('/')[-1]
os.environ['DJANGO_SETTINGS_MODULE'] = "%s.settings" % _PROJECT_NAME

from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
########
could somebody help me

Thanks

Geonomos

bruno desthuilliers

unread,
Jun 25, 2011, 12:01:06 PM6/25/11
to Django users
On Jun 25, 10:24 am, geonomos <agr.gianluca.mas...@gmail.com> wrote:
> Hi,
> I'm new in django frameworck and I'm tring to develop a simple application.
> I've a free account in alwaysdata and I've follow instruction in
> "https://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/?from=..."
> but if I point with the browser to the  application's url I see only the
> content of django.fcgi:

Apache configuration problem.
https://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/#apache-setup

Tim Johnson

unread,
Mar 6, 2013, 7:52:08 PM3/6/13
to django...@googlegroups.com
* Stephan Hassenpflug <hasse...@gmail.com> [130306 11:45]:
> Hi,
>
> I have the same problem, but I can not see what to change.
> I can not change the setup of apache as described.
Me too (similarly)
I kind of feel like fastcgi and shared hosting environments
have been abandoned by django (or never _really_ supported).
See my ticket at

https://code.djangoproject.com/ticket/19970

and the reference at that page to another ticket. I haven't got
the time right now to pursue this further as I have failed (thus
far) as well. However, I am going to give it another try, when my
work slacks off because I think there are additional directives
necessary for .htaccess. If I can get django working with fastcgi
on hostmonster, I will post the .htaccess file to this ML.
> --
> You received this message because you are subscribed to the Google Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
Tim
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com
Reply all
Reply to author
Forward
0 new messages