+ {% include 'partials/_alerts.html' %}
+
{% block content %}
{% endblock content %}
diff --git a/src/core/templates/partials/_alerts.html b/src/core/templates/partials/_alerts.html
new file mode 100644
index 0000000..3092be4
--- /dev/null
+++ b/src/core/templates/partials/_alerts.html
@@ -0,0 +1,18 @@
+{% if messages %}
+ {% for message in messages %}
+
+
+
+ {% endfor %}
+{% endif %}
+
diff --git a/src/core/templates/partials/_head.html b/src/core/templates/partials/_head.html
index 9b11293..a0bc219 100644
--- a/src/core/templates/partials/_head.html
+++ b/src/core/templates/partials/_head.html
@@ -1,3 +1,5 @@
+{% load static %}
+
@@ -27,4 +29,4 @@
-
\ No newline at end of file
+
diff --git a/src/core/templates/partials/_topbar.html b/src/core/templates/partials/_topbar.html
index 83838ce..8cdd277 100644
--- a/src/core/templates/partials/_topbar.html
+++ b/src/core/templates/partials/_topbar.html
@@ -179,4 +179,4 @@
-
\ No newline at end of file
+
diff --git a/src/core/templates/user_base.html b/src/core/templates/user_base.html
index 6492ad2..1235aa7 100644
--- a/src/core/templates/user_base.html
+++ b/src/core/templates/user_base.html
@@ -8,6 +8,7 @@
+ {% include 'partials/_alerts.html' %}
{% block content %} {% endblock content %}
diff --git a/src/core/urls.py b/src/core/urls.py
index 7cd66c8..1114900 100644
--- a/src/core/urls.py
+++ b/src/core/urls.py
@@ -17,6 +17,7 @@ from django.contrib import admin
from django.urls import path,include
from django.conf.urls.static import static
from django.conf import settings
+from django.contrib.auth.views import LoginView, LogoutView
from . import views
@@ -24,5 +25,7 @@ from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path('classroom/',include('classroom.urls')),
- path('', views.landing, name='langing-page'),
+ path('', views.landing, name='landing-page'),
+ path('users/', include('users.urls')),
+
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
diff --git a/src/users/forms.py b/src/users/forms.py
new file mode 100644
index 0000000..e1b93b5
--- /dev/null
+++ b/src/users/forms.py
@@ -0,0 +1,11 @@
+from django.contrib.auth.forms import UserCreationForm
+from django.contrib.auth.models import User
+from django import forms
+
+class UserRegistrationForm(UserCreationForm):
+ email = forms.EmailField()
+
+ class Meta:
+ model = User
+ fields= ['username', 'email', 'password1', 'password2']
+
diff --git a/src/users/templates/users/login.html b/src/users/templates/users/login.html
index a9e5d91..58fa3ec 100644
--- a/src/users/templates/users/login.html
+++ b/src/users/templates/users/login.html
@@ -1,4 +1,8 @@
{% extends 'user_base.html' %}
+{% load static %}
+{% load crispy_forms_tags %}
+{% load widget_tweaks %}
+
{% block title %} Forgot Password {% endblock title %}
{% block content %}
@@ -17,29 +21,17 @@
Welcome Back!
@@ -57,4 +49,4 @@