Deploy django app on railway

24 views
Skip to first unread message

Lakshyaraj Dash

unread,
Oct 31, 2022, 12:49:06 PM10/31/22
to django...@googlegroups.com
I'm having troubles in using django app on railway ie after deployment I get csrf token validation error even if my forms are protected with csrf tokens.
Please anyone fix this problem.

Percy Masekwameng

unread,
Oct 31, 2022, 1:57:18 PM10/31/22
to django...@googlegroups.com
I had the same issues but I ended up editing Django version to 3.2 in the requirements.txt 

That's one of the new features of Django 4.1, use less version of Django like 3.2 it won't give you problems.

I suggest you do the same, will try to figure it out

On Mon, 31 Oct 2022, 18:48 Lakshyaraj Dash, <dashlaksh...@gmail.com> wrote:
I'm having troubles in using django app on railway ie after deployment I get csrf token validation error even if my forms are protected with csrf tokens.
Please anyone fix this problem.

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF7qQgA_XroFAEsKPEVmZ%3Dxj2GyGJwUk5xXe8BG9cr%3DTbUaLDQ%40mail.gmail.com.

subin

unread,
Nov 3, 2022, 4:46:58 PM11/3/22
to django...@googlegroups.com

subin

unread,
Nov 3, 2022, 4:49:06 PM11/3/22
to django...@googlegroups.com
I will continue learning more about .

On Mon, Oct 31, 2022 at 5:48 PM Lakshyaraj Dash <dashlaksh...@gmail.com> wrote:
I'm having troubles in using django app on railway ie after deployment I get csrf token validation error even if my forms are protected with csrf tokens.
Please anyone fix this problem.

--
Reply all
Reply to author
Forward
0 new messages