inital commit for signup
added a basic app using the UserCreationForm to create new user at /accounts/signup/ change outside of the app are: -added signup to INSTALLED_APPS in /photo21/settings.py -added accounts/signup/ to path in /photo21/urls.py should extend UserCreationForm to have field for email and maybe first/last names, except if we want the user to add that themselves later
This commit is contained in:
parent
5848b83e1e
commit
2db323f74d
7 changed files with 47 additions and 0 deletions
9
signup/templates/signup.html
Normal file
9
signup/templates/signup.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>Création d'utilisateur</h1>
|
||||
<form action = '' method="post">{% csrf_token %}
|
||||
{{ form }}
|
||||
<br>
|
||||
<input type="submit" value="Envoyer">
|
||||
</form>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue