These are chat archives for django/django

16th
Nov 2018
RAHUL KOUNDAL
@rahulkoundal
Nov 16 2018 09:13
class MailingListView(LoginRequiredMixin,ListView):
please explain this line
Eze Sunday
@rexeze
Nov 16 2018 09:25
Anyone has experience working with Django and React?
DRF in particular. I'm struglling with sending a post request to the rest API and having it saved in the database. More like trying to create a user from the react frontend.
Have any tutorial I can look up?
I'm using the es6 fetch API
Eze Sunday
@rexeze
Nov 16 2018 09:31
One problem I encountered is "crsf_token" error. Well, I installed the library https://www.npmjs.com/package/django-react-csrftoken to handle it. I still have this issue.
GeezerP
@geezerP
Nov 16 2018 09:33
did you add the installed library to the installed apps settings module?
Eze Sunday
@rexeze
Nov 16 2018 09:35
In react I imported it to the component where my form and request is.
Eze Sunday
@rexeze
Nov 16 2018 09:36
For Django, I aded
GeezerP
@geezerP
Nov 16 2018 09:38
check on the serializers bit. Quite insightful
Eze Sunday
@rexeze
Nov 16 2018 09:39
I'm taking a look now.
I've the article before. The writer didn't make a post request