cleopatra27 / django-cms-login

A django-cms apphook to aid with user authentication.
5 stars 6 forks source link

hey, django 4 ver doesn't support your code, update here: #1

Open IsraelCohen54 opened 3 weeks ago

IsraelCohen54 commented 3 weeks ago

from django.urls import re_path, include from django.contrib import admin from .views import register urlpatterns = [

re_path(r'^register/', register),

]

... as well as changes to the url:

path('en/login/', auth_views.LoginView.as_view(template_name='registration/login.html'), name='login'),
path('logout/', auth_views.LogoutView.as_view(), name='logout'),

# Include django_login URLs for additional auth features
path('', include('django_login.urls')),

at the end, it seems to run for me, problem is I don't see the login prompt currently

IsraelCohen54 commented 3 weeks ago

The url function in django.conf.urls has been deprecated in Django 4.0 and removed in Django 4.1. It’s now recommended to use path() and re_path() instead. To resolve, modify django_login.