On Fri, Apr 11, 2008 at 9:28 AM, Aldo <[EMAIL PROTECTED]> wrote: > > Fair point. > > My problem is - Initially i created my index.html in the root(DOCUMENT > ROOT). > Now I have downloaded Django as described - put it in my root. > I have created my .htaccess files as > RewriteEngine on > RewriteRule ^cgi-bin/ - [L] > RewriteRule ^media/ - [L] > RewriteRule ^(.*)(/)$ cgi-bin/dj/$1/ > RewriteRule ^$ cgi-bin/dj/home/ > Ive created the cgi-bin/dj file and gave permissions. > However when i try to access that file(http://www.musicischarity.com/ > cgi-bin/dj <http://www.musicischarity.com/cgi-bin/dj>) it gives me an > error - Error 500: Internal Server Error
You are not supposed to access the script directly like this. Rather you are supposed to use your application's normal urls (e.g. http://www.muicscharity.com/admin/ for, say, the Django admin app), and the RewriteRules convert that to an invocation of your dj script. > > (Usually I would have content-type in it - but its not in the > examples. tried it and still no good.) > The dj file was edited to contain my own details. paths etc. maybe i > have them wrong. > sys.path.append("/hsphere/local/home/musicisc/Django-0.96") > sys.path.append("/hsphere/local/home/musicisc") > and > # Change this to the directory above your site code. > sys.path.append("/hsphere/local/home/musicisc/Django-0.96/") > os.chdir("/hsphere/local/home/musicisc/Django-0.96/") > # Change mysite to the name of your site package > os.environ['DJANGO_SETTINGS_MODULE'] = 'musicischarity.settings' > run_with_cgi(django.core.handlers.wsgi.WSGIHandler()) > > I am not sure anyone will be able to help - but my alternative is to > give up - ive been working on this for hours. > CGI is not at all a recommended way to run Django (see the discussion in http://code.djangoproject.com/ticket/2407) but it seems it can be made to work after a fashion if it's your only option. Karen > > On Apr 11, 1:23 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 11, 2008 at 6:48 AM, Aldo <[EMAIL PROTECTED]> wrote: > > > > > Hi folks I have a linux hosting account with digiweb. I want to run my > > > django app on it - but am running into problems. > > > > >http://care.register365.com/index.php?_m=knowledgebase&_a=viewarticle. > .. > > > > >http://seamusc.com/blog/2007/jun/11/how-get-django-working-digiwebie-. > .. > > > > > I am trying to follow examples such as below but to no avail. Could > > > anyone be able to help me out? or give me pointers? > > > > You provide links to two sites with detailed instructions on how to do > what > > you are interested in, but no details on what trouble you have run into > > trying to follow those instructions. It's rather hard to provide any > > guidance with no clues as to what isn't working. > > > > Karen > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

