Saturday, January 14, 2006

Typo in

Hi Adrian,

I tried python but it seems like the traceback didn't give much away though,

File "", line 6

SyntaxError: invalid syntax

Hmmm, I really can't figure anything more from here, there is really nothing in line 6 !!
Below is how my look like,

from django.conf.urls.defaults import *

urlpatterns = patterns('',
((r'^admin/', include('django.contrib.admin.urls.admin')),

Thanks again for all the help so far, really really appreciate it. I wonder if I learn Java instead, would James Gosling drop by and give me some tips too? :-)

1 comment:

Adrian Holovaty said...

You've got one too many open-parentheses in there. Remove one of the parentheses before r'^admin/', and it should work.