Skip to content

Commit

Permalink
created form for signing up, added path to todo/urls.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane committed Jan 3, 2021
1 parent 5b48ecc commit ebd1206
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
Binary file modified todo/__pycache__/urls.cpython-39.pyc
Binary file not shown.
3 changes: 2 additions & 1 deletion todo/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
"""
from django.contrib import admin
from django.urls import path, include

from users import views as user_views
urlpatterns = [
path('admin/', admin.site.urls),
path('register/', user_views.register, name="register" ),
path("", include("main.urls"))
]
Binary file added users/__pycache__/views.cpython-39.pyc
Binary file not shown.
12 changes: 12 additions & 0 deletions users/templates/users/register.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<form method="POST">
{% csrf_token %}
{{form.as_p}}
<div>
<button type="submit">Sign Up</button>
</div>
</form>
<div>
<small>
Already Have an Account? <a href="#">Sign In</a>
</small>
</div>

0 comments on commit ebd1206

Please sign in to comment.