Skip to content Skip to sidebar Skip to footer

ValueError At /signup/ The Given Username Must Be Set

so basically I have been building this blogging website and now I am stuck at this point of the Signup process, the whole work is done using django views.py: def handleSignup(reque

Solution 1:

You have to add name to your input field in HTML:

<div class="form-group">
      <label for="username">Username</label>
      <input type="text" class="form-control" id="username" name="username" placeholder="choose a unique username">
</div>

You are not giving name in any of the input field. Server takes data from the form on the basis of name, but not id. So, provide name to each input tag in your form. And, you are good to go.


Post a Comment for "ValueError At /signup/ The Given Username Must Be Set"