settings.py TEMPLATES DIRS

閲覧: 36 回
最初の未読メッセージにスキップ

Gary Roach

未読、
2015/08/01 2:59:382015/08/01
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

未読、
2015/08/01 3:12:582015/08/01
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

未読、
2015/08/01 11:31:222015/08/01
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
全員に返信
投稿者に返信
転送
新着メール 0 件