From 4e99d2b45a0bb9fc1e4973da6ffdc0eb39270cf1 Mon Sep 17 00:00:00 2001 From: Mohamed El-Kalioby Date: Fri, 18 Jan 2019 14:44:42 +0300 Subject: [PATCH] URLS --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7bbd9fc..566286f 100644 --- a/README.md +++ b/README.md @@ -64,5 +64,14 @@ Depends on return log_user_in(request,username=user.username) #log_user_in is a function that handles creatung user session, it should be in the setting file as MFA_CALLBACK ``` -1. Provide `mfa_auth_base.html` in your templaes - The template will be included for the user login +1. Add mfa to urls.py + ```python + import mfa + urls_patterns= [ + '...', + url(r'^mfa/', include(mfa.urls)), + '....', + ] + ``` +1. Provide `mfa_auth_base.html` in your templaes with block called 'head' and 'content' + The template will be included during the user login