On Jan 25, 4:54 pm, Krondaj <
c.d.smi...@gmail.com> wrote:
(snip)
> I get:
>
> File "/home/chrissmith/Dcode/rrws/rrs/models.py", line 36
> upload_doc = models.FileField(upload_to 'documents')
>
> ^
> SyntaxError: invalid syntax
>
> any idea's what's up?
Please re-read carefully the error message and the line it points to.
The error message says "SyntaxError: invalid syntax", which means your
code isn't valid python code. The cursor points to where the syntax
error happens, that is the whitespace between 'upload_to' and
"documents".
The valid syntax would be:
upload_doc = models.FileField(upload_to='documents')
I strongly suggest you take some time to learn Python - at least do
the official tutorial - if you hope to get anything done in Django.