Help with Debugging

Andrea D'Amore anddam+NOSPAM at brapi.net
Mon Sep 28 08:20:24 CEST 2015


On 2015-09-28 05:26:35 +0000, Cai Gengyang said:

>   File "/Users/CaiGengYang/mysite/mysite/settings.py", line 45
> 
>     'django.middleware.csrf.CsrfViewMiddleware',
> 
>                                               ^
> 
> SyntaxError: invalid syntax

The syntax looks fine in the pastebin, did you possibly copy text from 
web thus pasting smartquotes or unprintables in your source file?


-- 
Andrea



More information about the Python-list mailing list