Fwd: Django Tutorial (Database setup) Question

Chris Warrick kwpolska at gmail.com
Sun Sep 27 13:51:02 EDT 2015


Forwarding to list (forgot about this stupid reply all thing, sorry).


---------- Forwarded message ----------
From: Chris Warrick <kwpolska at gmail.com>
Date: 27 September 2015 at 19:50
Subject: Re: Django Tutorial (Database setup) Question
To: Cai Gengyang <gengyangcai at gmail.com>


On 27 September 2015 at 19:39, Cai Gengyang <gengyangcai at 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 <kwpolska at gmail.com> wrote:
>>
>> On 27 September 2015 at 18:18, Cai Gengyang <gengyangcai at 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



More information about the Python-list mailing list