On Nov 11, 6:52 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> 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

You have a close bracket on the line after polls, and then another one
(at the same level) on the final line. I think you want to remove the
first one.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to