Re: Calling api from django view error. forbidden (csrf token is missing or incorrect)

2018-01-23 Thread Yungjae Kim
s suppose to call the api from another >>> app. Further more i also need to save some of the details the was get from >>> both post and get method >>> >>> On Monday, January 22, 2018 at 5:03:18 PM UTC+9, chern...@gmail.com >>> wrote: >>>

Re: Calling api from django view error. forbidden (csrf token is missing or incorrect)

2018-01-23 Thread cherngyorng
details the was get from >> both post and get method >> >> On Monday, January 22, 2018 at 5:03:18 PM UTC+9, chern...@gmail.com >> wrote: >>> >>> I seen alot of other solution, tried it but problem still persist. >>> >>> When i do a re

Re: Calling api from django view error. forbidden (csrf token is missing or incorrect)

2018-01-22 Thread Yungjae Kim
03:18 PM UTC+9, chern...@gmail.com wrote: >> >> I seen alot of other solution, tried it but problem still persist. >> >> When i do a requests.get, it works fine but when i'm doing requests.post. >> I got this forbidden (csrf token is missing or incorrect) error. >>

Re: Calling api from django view error. forbidden (csrf token is missing or incorrect)

2018-01-22 Thread cherngyorng
...@gmail.com wrote: > > I seen alot of other solution, tried it but problem still persist. > > When i do a requests.get, it works fine but when i'm doing requests.post. > I got this forbidden (csrf token is missing or incorrect) error. > > > Here is my code >

Re: Calling api from django view error. forbidden (csrf token is missing or incorrect)

2018-01-22 Thread Andréas Kühne
t; > When i do a requests.get, it works fine but when i'm doing requests.post. > I got this forbidden (csrf token is missing or incorrect) error. > > > Here is my code > > *models.py* > > class TestPost(models.Model): > # reminderId = models.AutoField() >

Calling api from django view error. forbidden (csrf token is missing or incorrect)

2018-01-22 Thread cherngyorng
I seen alot of other solution, tried it but problem still persist. When i do a requests.get, it works fine but when i'm doing requests.post. I got this forbidden (csrf token is missing or incorrect) error. Here is my code *models.py* class TestPost(models.Model): # remin

Re: CSRF token is missing

2010-08-25 Thread Aspontus
Hi. I had such a problem lately and it turned out to be caused by using older template, from django 1.1, which didn't get deleted during upgrade. Hope it helps. Cheers On 25 Sie, 14:36, Jonas Geiregat wrote: > I'm using django-1.2.1 on Mac OS X. > > I'm trying out the comments framework that come

Re: CSRF token is missing

2010-08-25 Thread davidchambers
Make sure that 'django.middleware.csrf.CsrfViewMiddleware' is listed in your MIDDLEWARE_CLASSES. There's useful info about the things that need to be in place in order for Django's CSRF protection to work at http://docs.djangoproject.com/en/dev/ref/contrib/csrf/. David On Aug 26, 12:36 am, Jonas

CSRF token is missing

2010-08-25 Thread Jonas Geiregat
I'm using django-1.2.1 on Mac OS X. I'm trying out the comments framework that comes with django by default. I'm able to {% load comments %} and {% render_comment_list for post %} and {% render_comment_form for post %} . But when I try to post a message I get a 403 error: """ CSRF veri