Forwarding to list (forgot about this stupid reply all thing, sorry).
---------- Forwarded message ---------- From: Chris Warrick <kwpol...@gmail.com> Date: 27 September 2015 at 19:50 Subject: Re: Django Tutorial (Database setup) Question To: Cai Gengyang <gengyang...@gmail.com> On 27 September 2015 at 19:39, Cai Gengyang <gengyang...@gmail.com> wrote: > http://pastebin.com/index/RWt1mp7F ---- Looking through my code , can't seem > to find any errors yet. All the parentheses seem to be in place too, this is > weird ... > > On Mon, Sep 28, 2015 at 1:01 AM, Chris Warrick <kwpol...@gmail.com> wrote: >> >> On 27 September 2015 at 18:18, Cai Gengyang <gengyang...@gmail.com> wrote: >> > I believe I am already in the same directory that contains manage.py , >> > but I >> > still get an error (a syntax error). Checked the lines in settings.py >> > and >> > can't find anything wrong with them either. Posted my entire code below >> > : >> >> > File "/Users/CaiGengYang/mysite/mysite/settings.py", line 45 >> > 'django.middleware.csrf.CsrfViewMiddleware', >> > ^ >> > SyntaxError: invalid syntax >> >> There’s a typo on or before line 45. Pastebin your full settings.py >> file, and try looking for errors (like missing parentheses) yourself. >> >> -- >> Chris Warrick <https://chriswarrick.com/> >> PGP: 5EAAEA16 > > On further inspection, this might be a Django or Python problem… try re-installing Django. I don’t really know what could be wrong here. -- Chris Warrick <https://chriswarrick.com/> PGP: 5EAAEA16 -- https://mail.python.org/mailman/listinfo/python-list