0

I'm on page 75 of this book but kept getting this error

TemplateSyntaxError at /admin/ Caught SyntaxError while rendering: invalid syntax (urls.py, line 1)

Can't seems to find the problem.

I setup a git at Github, you can check out the codes there. https://github.com/mrsmith123/Practical-Django-Project

Thanks.

0

1 Answer 1

2

In coltrane.urls line 1:

from django.conf.urls.defaults imports *

should be import

Whnever you get a SyntaxError the problem is going to be very direct. Just look at the line that the Error is being raised on or the line before it and 99% of the time that should solve your problem.

Sign up to request clarification or add additional context in comments.

2 Comments

Yes, I thought it was an obvious error but I deleted the * but it's still got the same error.
You should change imports to import that's what was wrong with it (not the *).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.