diff --git a/accounts/settings.py b/accounts/settings.py index c30eb6d..0ddebbc 100644 --- a/accounts/settings.py +++ b/accounts/settings.py @@ -178,7 +178,7 @@ USE_TZ = True # LOGIN_URL = '/accounts/login/' # LOGIN_REDIRECT_URL = '/accounts/profile/' -# LOGIN_URL = +LOGIN_URL = '/users/login' LOGIN_REDIRECT_URL = '/' AUTH_USER_MODEL = 'users.User' diff --git a/templates/registration/login.html b/templates/registration/login.html index bfbe248..296f176 100755 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -96,7 +96,7 @@ // var data = {'username': mobileNumberOrUsername} //} - $.post("{% url 'users:request_otp' %}", data).done( + $.post("{% url 'users:request_otp_api' %}", data).done( function (result) { console.log(result); if (result.hasOwnProperty('ttl')) {