You have to start FastCGI demon that will handle request. For example by using `./manage.py runfcgi` command
On Tue, Nov 25, 2008 at 20:47, Oleg Oltar <[EMAIL PROTECTED]> wrote: > Hi! > > I have a shared hosting. Need to place there my django application. I > created ./.htaccess in my root directory which contains following > [EMAIL PROTECTED] ~ $ cat ./http/.htaccess > AddHandler fastcgi-script .fcgi > RewriteEngine On > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L] > > Also created file: mysite.fcgi > #!/usr/bin/python > import sys, os > > # Add a custom Python path. > # sys.path.insert(0, "/home/virtwww/w_technobud-com-ua_94216229/TECHNOBUD") > > # Switch to the directory of your project. (Optional.) > # os.chdir("/home/user/myproject") > > # Set the DJANGO_SETTINGS_MODULE environment variable. > os.environ['DJANGO_SETTINGS_MODULE'] = "TECHNOBUD.settings" > > from django.core.servers.fastcgi import runfastcgi > runfastcgi(method="threaded", daemonize="false") > > > But when I am trying to access my web server using browser, I am getting > contents of mysite.fsgi instead of site > The django project (TECHNOBUD is located in my home directory) > > Please help me... Need to host it urgently > > Thanks, > Oleg > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---