Well, when I am trying to do it, I am getting 500 Error (shown in console) Status: 500 INTERNAL SERVER ERROR Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/html 4/loose.dtd"><html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="robots" content="NONE,NOARCHIVE"> <title>TemplateDoesNotExist at /</title> <style type="text/css"> html * { padding:0; margin:0; } body * { padding:10px 20px; } Should I move my django project to document root folder? On Tue, Nov 25, 2008 at 7:59 PM, Alex Koshelev <[EMAIL PROTECTED]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---