Kasper Laudrup
unread,Aug 7, 2019, 3:33:44 AM8/7/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hi Solomon,
On 06/08/2019 09.27, Solomon Mbak wrote:
> I have given myself many hours to try and solve this one, all to no
> avail. I really need some help.
>
> My app works perfectly on development environment. When I deploy on
> Google App Engine, I get series of syntax error.
>
It would be extremely helpful if you could post the exact syntax error
you are getting, without that, I can only guess.
>
> returnHttpResponse(f"{single_slug} doesnt exist at all.")
> |
>
> This error on this piece is on the last line. And the console points to
> the full-stop on that line.
>
The "f-string syntax" was introduced in Python 3.6, so I'm guessing
you're using an older Python version when running in Google App Engine
which doesn't understand the convenient "f-string syntax".
Hopefully that explains it.
Kind regards,
Kasper Laudrup