It appears that the 500 error was a result of Dreamhost's process watcher killing scripts. I'm still not sure where the problem is originating from but coincidently I am now getting syntax errors from django i.e., no 500 errors - at current time. Does anyone know why I am getting a syntax error form this:
Exception Value: invalid syntax (urls.py, line 21) from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^$', 'SITENAME.polls.views.current_datetime'), (r'^polls/$', 'SITENAME.polls.views.index'), (r'^polls/(?P<poll_id>\d+)/$', 'SITENAME.polls.views.detail'), (r'^polls/(?P<poll_id>\d+)/results/$', 'SITENAME.polls.views.results'), (r'^polls/(?P<poll_id>\d+)/vote/$', 'SITENAME.polls.views.vote'), ) # Uncomment the admin/doc line below and add 'django.contrib.admindocs' # to INSTALLED_APPS to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: (r'^admin/(.*)', admin.site.root), # LINE 21 ) Thanks for all the help, Jason On Nov 7, 7:32 am, Blu3ness <[EMAIL PROTECTED]> wrote: > 500 error will generate a error log in your ~/logs/ directory, do a > little research on it, or maybe post it here :) > > On Nov 6, 1:58 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > I think I had the .htaccess and dispatch.fcgi files in the wrong > > place. I had them in the django generated mysite directory rather the > > than the domain, but now when I go to mysite.com I get the 500 > > internal server error. This happened when I tried the Jeff Croft > > setup:http://jeffcroft.com/blog/2006/may/11/django-dreamhost/which > > is where I heard about the Gordon Tillman fix. Thanks for the help > > thus far and any related to my new problem. > > > Jason > > > On Nov 6, 9:56 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > I used the Gordon Tillman > > > setup:http://www.gordontillman.info/Development/DjangoDreamhost > > > here are the dispatch.fcgi and .htaccess files: > > > > // dispatch.fcgi > > > > #!/usr/bin/env python2.4 > > > import sys, os > > > > # Add a custom Python path. > > > sys.path.insert(0, "/home/USERNAME/projects/django/trunk") > > > sys.path.insert(0, "/home/USERNAME/projects/flup/trunk") > > > sys.path.insert(0, "/home/USERNAME/projects") > > > > //.htaccess > > > > # Set the DJANGO_SETTINGS_MODULE environment variable. > > > os.environ['DJANGO_SETTINGS_MODULE'] = "mysite.settings" > > > > from django.core.servers.fastcgi import runfastcgi > > > runfastcgi(method="threaded", daemonize="false") > > > > AddHandler fastcgi-script .fcgi > > > RewriteEngine On > > > RewriteBase / > > > RewriteRule ^(media/.*)$ - [L] > > > RewriteRule ^(admin_media/.*)$ - [L] > > > RewriteRule ^(dispatch\.fcgi/.*)$ - [L] > > > RewriteRule ^(.*)$ dispatch.fcgi/$1 [L] > > > > Here is my directory structure: > > > > home/USERNAME/ > > > www.mysite.com/ > > > www.anothersite.com/ > > > www.yetanothersite.com/ > > > projects/ > > > django/ > > > flup/ > > > django_templates/ > > > media/ > > > mysite/ > > > > On Nov 5, 5:56 pm, AndyB <[EMAIL PROTECTED]> wrote: > > > > >http://wiki.dreamhost.com/index.php/Django > > > > > Have you got the .htaccess, dispatch.fcgi etc all set up? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---