[Fixed]-Form fields missing in Django, just button visable


One Suggesestion here ….

if Using request.POST.get(‘anything’) simply then it Will raise error if particular string not find as in example(‘anything’) string…

Because request.POST.get(‘anything’) will return None if ‘anything’ is not in request.POST.

Additionally, .get allows you to provide an additional parameter of a default value which is returned if the key is not in the dictionary.

e.g: Corrected will be request.POST.get(‘anything’, ‘mydefaultvalue’)

Leave a comment