javascript - django-allauth Uncaught ReferenceError -
i cannot work out why getting:
uncaught referenceerror: allauth not defined
...when clicking facebook link at: https://obscure-harbor-7751.herokuapp.com/accounts/signup/ hosted on heroku. there no related javascript rendered page, don't know allauth handle from.
i'm quite sure relevant settings correct (pasted below). think working before , somehow stopped working of late (possibly due update pulled requirement on deployment). using django-cookiecutter.
can suggest problem might be? i've tried many things , looked live example online see sort of js should expect couldn't find any.
please help!
thanks,
relevant settings:
template_context_processors = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.request', "allauth.account.context_processors.account", "allauth.socialaccount.context_processors.socialaccount", # stuff: custom template context processers go here ) authentication_backends = ( "django.contrib.auth.backends.modelbackend", "allauth.account.auth_backends.authenticationbackend", ) installed_apps += ( # needs come last because of weird edge case between # south , allauth 'allauth', # registration 'allauth.account', # registration 'allauth.socialaccount', # registration 'allauth.socialaccount.providers.facebook', )
use followings may better:
{% providers_media_js %}
ref: http://django-allauth.readthedocs.org/en/latest/templates.html
Comments
Post a Comment