diff --git a/ipv6work/urls.py b/ipv6work/urls.py index 0238e72..159604e 100644 --- a/ipv6work/urls.py +++ b/ipv6work/urls.py @@ -13,10 +13,20 @@ Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ +from django.conf import settings from django.contrib import admin -from django.urls import path, include +from django.urls import path, include, re_path +from django.contrib.auth import views as auth_views urlpatterns = [ + re_path( + 'login/', + auth_views.LoginView.as_view(), + name='login'), + re_path( + 'logout/', + auth_views.LogoutView.as_view(), + name='logout'), path('admin/', admin.site.urls), path('', include('jobs.urls')) ] diff --git a/templates/registration/login.html b/templates/registration/login.html new file mode 100644 index 0000000..8d0e64d --- /dev/null +++ b/templates/registration/login.html @@ -0,0 +1,9 @@ +{% extends 'base.html' %} +{% block title %}Login{% endblock %} +{% block body_content %} +

Login

+
+ {% csrf_token %} {{ form.as_p }} + +
+{% endblock %} \ No newline at end of file