Wednesday, August 7, 2019

Re: I get errors when I try deploying my app on gae

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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c4c7808a-f3e5-8008-a9e3-8c10847662e7%40stacktrace.dk.

No comments:

Post a Comment