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:
>>>
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
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.
>>
...@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
>
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()
>
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
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
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
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
9 matches
Mail list logo