python - Django No module named backendssocial.apps.django_app.context_processors -


i'm adding authentication via facebook , when run localhost i'm getting error in terminal:

xx-macbook-pro:bookstore xx$ python manage.py runserver /library/python/2.7/site-packages/django/db/models/fields/subclassing.py:22: removedindjango110warning: subfieldbase has been deprecated. use field.from_db_value instead.   removedindjango110warning)  /library/python/2.7/site-packages/django/db/models/fields/subclassing.py:22: removedindjango110warning: subfieldbase has been deprecated. use field.from_db_value instead.   removedindjango110warning)  performing system checks...  /library/python/2.7/site-packages/social/apps/django_app/urls.py:12: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got auth). pass callable instead.   name='begin'),  /library/python/2.7/site-packages/social/apps/django_app/urls.py:14: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got complete). pass callable instead.   name='complete'),  /library/python/2.7/site-packages/social/apps/django_app/urls.py:17: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got disconnect). pass callable instead.   name='disconnect'),  /library/python/2.7/site-packages/social/apps/django_app/urls.py:19: removedindjango110warning: support string view arguments url() deprecated , removed in django 1.10 (got disconnect). pass callable instead.   'disconnect', name='disconnect_individual'),  /library/python/2.7/site-packages/social/apps/django_app/urls.py:19: removedindjango110warning: django.conf.urls.patterns() deprecated , removed in django 1.10. update urlpatterns list of django.conf.urls.url() instances instead.   'disconnect', name='disconnect_individual'),  system check identified no issues (0 silenced). september 12, 2016 - 19:22:13 django version 1.9, using settings 'bookstore.settings' starting development server @ http://127.0.0.1:8000/ quit server control-c. 

i'm guessing bottom portion of saying newer version of django different. i'm guessing top portion saying there there warning leading it. however, when go localhost error:

request method: request url: http://localhost:8000/store/  django version: 1.9 python version: 2.7.10 installed applications: ['django.contrib.admin',  'django.contrib.auth',  'django.contrib.contenttypes',  'django.contrib.sessions',  'django.contrib.messages',  'django.contrib.staticfiles',  'social.apps.django_app.default',  'registration',  'store'] installed middleware: ['django.middleware.security.securitymiddleware',  'django.contrib.sessions.middleware.sessionmiddleware',  'django.middleware.common.commonmiddleware',  'django.middleware.csrf.csrfviewmiddleware',  'django.contrib.auth.middleware.authenticationmiddleware',  'django.contrib.auth.middleware.sessionauthenticationmiddleware',  'django.contrib.messages.middleware.messagemiddleware',  'django.middleware.clickjacking.xframeoptionsmiddleware']  traceback:  file "/library/python/2.7/site-packages/django/core/handlers/base.py" in get_response   149.                     response = self.process_exception_by_middleware(e, request)  file "/library/python/2.7/site-packages/django/core/handlers/base.py" in get_response   147.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)  file "/users/rseck/desktop/stoneriverelearning/bookstore/store/views.py" in store   17.     return render(request, 'store.html', context)  file "/library/python/2.7/site-packages/django/shortcuts.py" in render   67.             template_name, context, request=request, using=using)  file "/library/python/2.7/site-packages/django/template/loader.py" in render_to_string   97.         return template.render(context, request)  file "/library/python/2.7/site-packages/django/template/backends/django.py" in render   95.             return self.template.render(context)  file "/library/python/2.7/site-packages/django/template/base.py" in render   204.                 context.bind_template(self):  file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/contextlib.py" in __enter__   17.             return self.gen.next()  file "/library/python/2.7/site-packages/django/template/context.py" in bind_template   256.         processors = (template.engine.template_context_processors +  file "/library/python/2.7/site-packages/django/utils/functional.py" in __get__   33.         res = instance.__dict__[self.name] = self.func(instance)  file "/library/python/2.7/site-packages/django/template/engine.py" in template_context_processors   105.         return tuple(import_string(path) path in context_processors)  file "/library/python/2.7/site-packages/django/template/engine.py" in <genexpr>   105.         return tuple(import_string(path) path in context_processors)  file "/library/python/2.7/site-packages/django/utils/module_loading.py" in import_string   20.     module = import_module(module_path)  file "/system/library/frameworks/python.framework/versions/2.7/lib/python2.7/importlib/__init__.py" in import_module   37.     __import__(name)  exception type: importerror @ /store/ exception value: no module named backendssocial.apps.django_app.context_processors 

when pip freeze see have python-social-auth==0.2.7, i'm not sure causing this.

this parts of settings.py file:

installed_apps = [   'django.contrib.admin',   'django.contrib.auth',   'django.contrib.contenttypes',   'django.contrib.sessions',   'django.contrib.messages',   'django.contrib.staticfiles',   'social.apps.django_app.default',   'registration',   'store', ] templates = [ {     'backend': 'django.template.backends.django.djangotemplates',     'dirs': [os.path.join(base_dir, 'templates')],     'app_dirs': true,     'options': {         'context_processors': [             'django.template.context_processors.debug',             'django.template.context_processors.request',             'django.contrib.auth.context_processors.auth',             'django.contrib.messages.context_processors.messages',             'social.apps.django_app.context_processors.backends'             'social.apps.django_app.context_processors.login_redirect'         ],     }, }, ] wsgi_application = 'bookstore.wsgi.application'  authentication_backends = (     'social.backends.facebook.facebookoauth2',     'django.contrib.auth.backends.modelbackend' ) # registration account_activation_days = 7 registration_auto_login = true login_redirect_url ='/store/'  # email settings email_backend = "django.core.mail.backends.smtp.emailbackend" email_host = "smtp.gmail.com" email_host_user = "xx@gmail.com" email_host_password = "xx" email_port = 587 email_use_tls = true default_from_email = "xx@xx.com"  # social auth - facebook social_auth_facebook_key = 'xx' social_auth_facebook_secret = 'xx' 

in advance, thank help!

you missing 1 comma in templates variable:

'context_processors': [     'django.template.context_processors.debug',     'django.template.context_processors.request',     'django.contrib.auth.context_processors.auth',     'django.contrib.messages.context_processors.messages',     'social.apps.django_app.context_processors.backends' <--- missing comma     'social.apps.django_app.context_processors.login_redirect' ], 

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -