settings.py TEMPLATES DIRS

36 views
Skip to first unread message

Gary Roach

unread,
Aug 1, 2015, 2:59:38 AM8/1/15
to Django users
Hi

I'm using Django 1.8 and python 2-7 on a Debian Linux system. I am using Ninja-ide as my ide. When I enter the following in the TEMPLATES section the settings.py file I get an invalid syntax error:

'DIRS': [os.path.join(BASE_DIR, 'templates'],


Since the DIRS entry is directly out of a tutorial I'm not sure what the problem implys.


Any help will be sincerely appreciated.


Gary R


James Schneider

unread,
Aug 1, 2015, 3:12:58 AM8/1/15
to django...@googlegroups.com

You're missing a closing ) after 'templates'...

-James

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/35d35abb-d5d2-4108-b66e-0456e4324584%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gary Roach

unread,
Aug 1, 2015, 11:31:22 AM8/1/15
to Django users
Thank you very much. I looked at that code for hours and didn't see the missing ) . A different set of eyes are really helpful.

Gary R
Reply all
Reply to author
Forward
0 new messages