I uis this code to submit form
```python
import requests

url = 'http://127.0.0.1:8000/contact/'
d = {'subject':'你好','email':'','message':'thank u'}
r = requests.post(url,data = d)
print(r.text)
```

but i don't has csrfmiddlewaretoken's values
I try to use requests.get to get csrfmiddlewaretoken's values then post,it 
also wrong,what should i do?

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b2a43a6f-cbe1-4347-be28-5f298093dae8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to