Posting data from pure HTML form to Django modelRESTful multi-step / multi-page forms in Django (ideas/examples)Django forms “not” using forms from modelsWhat does enctype='multipart/form-data' mean?Redirect from an HTML pageDjango-rest-framework: rewrite default form validaitonHow to add jQuery / HTML to Django Model Forms?How to map HTML form data to Django modelDjango form & rendering data from modelDjango forms, POSTdjango clean method on model form
Does an object count as "being moved" when placed in a Bag of Holding before its wielder moves, and then after moving they take the object out again?
If I have a 16.67% fail rate (N=24) & I do another 24 tests, what is the likelihood that I get 0 fails by chance?
How can I watch the 17th (or last, if less) line in files of a folder?
Give function defaults arguments from a dictionary in Python
In the MCU, why does Mjölnir retain its enchantments after Ragnarok?
Why didn’t Doctor Strange stay in the original winning timeline?
Can I switch to third-person while not in 'town' in Destiny 2?
How to persuade recruiters to send me the Job Description?
Sleeping solo in a double sleeping bag
Check in to 2 hotels at same location
How do I make distance between concentric circles equal?
Script that helps people make better choices
How would one country purchase another?
How much code would a codegolf golf if a codegolf could golf code?
Was Switzerland really impossible to invade during WW2?
Why we don't have vaccination against all diseases which are caused by microbes?
Why don't electrons take the shorter path in coils
Three Singles in Three Clubs
What is the hex versus octal timeline?
confused about grep and the * wildcard
Ask for a paid taxi in order to arrive as early as possible for an interview within the city
If the first law of thermodynamics ensures conservation of energy, why does it allow systems to lose energy?
What does it mean to have a subnet mask /32?
How would a situation where rescue is impossible be handled by the crew?
Posting data from pure HTML form to Django model
RESTful multi-step / multi-page forms in Django (ideas/examples)Django forms “not” using forms from modelsWhat does enctype='multipart/form-data' mean?Redirect from an HTML pageDjango-rest-framework: rewrite default form validaitonHow to add jQuery / HTML to Django Model Forms?How to map HTML form data to Django modelDjango form & rendering data from modelDjango forms, POSTdjango clean method on model form
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I currently am new to the Django framework and firstly created my data entry form on pure HTML and JS where I have logic for the select pickers, dynamically add and delete rows.
I can redirect the user to the HTML form after login but I am not able to figure out how to post data from the form to a django model ( I have inbuilt validations so not really a use case to use django form's class validations)
The problem I am facing currently is I am not able to find a solution where I can post data from my pure HTML form into a django model without using the django forms class ?
How can I solve this problem?
Thanks a lot
html django-forms
add a comment |
I currently am new to the Django framework and firstly created my data entry form on pure HTML and JS where I have logic for the select pickers, dynamically add and delete rows.
I can redirect the user to the HTML form after login but I am not able to figure out how to post data from the form to a django model ( I have inbuilt validations so not really a use case to use django form's class validations)
The problem I am facing currently is I am not able to find a solution where I can post data from my pure HTML form into a django model without using the django forms class ?
How can I solve this problem?
Thanks a lot
html django-forms
add a comment |
I currently am new to the Django framework and firstly created my data entry form on pure HTML and JS where I have logic for the select pickers, dynamically add and delete rows.
I can redirect the user to the HTML form after login but I am not able to figure out how to post data from the form to a django model ( I have inbuilt validations so not really a use case to use django form's class validations)
The problem I am facing currently is I am not able to find a solution where I can post data from my pure HTML form into a django model without using the django forms class ?
How can I solve this problem?
Thanks a lot
html django-forms
I currently am new to the Django framework and firstly created my data entry form on pure HTML and JS where I have logic for the select pickers, dynamically add and delete rows.
I can redirect the user to the HTML form after login but I am not able to figure out how to post data from the form to a django model ( I have inbuilt validations so not really a use case to use django form's class validations)
The problem I am facing currently is I am not able to find a solution where I can post data from my pure HTML form into a django model without using the django forms class ?
How can I solve this problem?
Thanks a lot
html django-forms
html django-forms
asked Mar 27 at 16:01
JJJJJJ
113 bronze badges
113 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55381631%2fposting-data-from-pure-html-form-to-django-model%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55381631%2fposting-data-from-pure-html-form-to-django-model%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown