pln-fing-udelar / covid19-qa

COVID-19 Question Answering
5 stars 4 forks source link

Add initial frontend code #4

Closed giossa94 closed 4 years ago

giossa94 commented 4 years ago

@bryant1410 @pgrill I think that this first initial version of the frontend app is ready for review. Let me know if you have any questions or suggestions.

giossa94 commented 4 years ago

@bryant1410 Will open a new PR to address your feedback:

bryant1410 commented 4 years ago

Cool, thanks! I set it to exactly that, but run into a CSRF token error.

giossa94 commented 4 years ago

Cool, thanks! I set it to exactly that, but run into a CSRF token error.

I ran into this too, and told it to @pgrill, he's going to fix it. It's an issue with the session cookies set when you log in into the admin panel (/admin), they seem to be sent on every request sent to the Django API, and the app endpoints are not authenticated right now. In the meantime try deleting the cookies of localhost:8000 (or whatever port you're serving the Django API).