Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IsraelCohen54 opened this issue Oct 30, 2024 · 1 comment
Open

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

IsraelCohen54 opened this issue Oct 30, 2024 · 1 comment

Comments

@IsraelCohen54
Copy link

IsraelCohen54 commented Oct 30, 2024

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant