Changes to Make to the urls.py File for django-registration-redux



Python


In this article, we show the changes that you have to make to the urls.py file for django-registration-redux.

django-registration-redux is a third-party application that allows us to build a website with users, registration, logins, etc.

So once you have installed, django-registration-redux, with the line, pip install django-registration-redux, and it has been successfully installed, there is one line that you must add to the urls.py file in the project directory.

This line is shown below.



So your complete urls.py file may look something like that as shown below.



So this is the only change we need to make to the urls.py file.

Users would then be able to register by visiting the URL /accounts/register/, login (once activated) at /accounts/login/, etc.

However, this will not work yet, because there are still other things we need to set up before we can use these URLs.

We will show this on another page.

So now, we've made changes to the urls.py file in the project directory and we've made changes to the settings.py file for django-registration-redux.

We still have a number of other pages to create to create a dynamic user-login and activation system in Django.




HTML Comment Box is loading comments...