Skip to content

Conversation

@Awmusic12635
Copy link

No description provided.

@dhiashalabi
Copy link

To make it fully migrated with Django>=4.x, you should also update urls.py file.

Code contains a problem.

from django.conf.urls import url
...
    url(r'reactivate/(?P<user_id>\d+)[/]?$', reactivate_user, name="reactivate_user"),
]

Code fix.

from django.urls import re_path
...
    re_path(r'reactivate/(?P<user_id>\d+)[/]?$', reactivate_user, name="reactivate_user"),
]

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

Successfully merging this pull request may close these issues.

2 participants