diff options
author | adityacp | 2020-01-02 15:36:17 +0530 |
---|---|---|
committer | adityacp | 2020-01-02 15:36:17 +0530 |
commit | 4273aacf6c56a075eeb20b7ff5cc7bfb62502a8a (patch) | |
tree | 9d9eab9956aafc63773c81eec14571a2cc3b43fc | |
parent | 887cfb20d0ba158aa0e0838d6b40f334084d202e (diff) | |
download | online_test-4273aacf6c56a075eeb20b7ff5cc7bfb62502a8a.tar.gz online_test-4273aacf6c56a075eeb20b7ff5cc7bfb62502a8a.tar.bz2 online_test-4273aacf6c56a075eeb20b7ff5cc7bfb62502a8a.zip |
Add django messages in template context processors
-rw-r--r-- | online_test/settings.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/online_test/settings.py b/online_test/settings.py index 3932cf3..6838865 100644 --- a/online_test/settings.py +++ b/online_test/settings.py @@ -163,6 +163,7 @@ TEMPLATES = [ 'django.contrib.auth.context_processors.auth', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect', + 'django.contrib.messages.context_processors.messages', ], 'debug': False, } @@ -187,3 +188,4 @@ SOCIAL_AUTH_FACEBOOK_SCOPE = ['email'] SOCIAL_AUTH_FACEBOOK_PROFILE_EXTRA_PARAMS = { 'fields': 'id, name, email' } + |