python - How to access a checkbox that's in a form in a Django template in view function in Django -


i have html file has form element. inside form have checkbox. how can access checkbox value when ticked inside views in django?

when send post request can access data sent dictionary request.post.

you should first read django forms documentation: https://docs.djangoproject.com/en/dev/topics/forms/


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -