Comments (5)
This is due to:
https://github.com/pennersr/django-allauth/blob/0.58.0/ChangeLog.rst#backwards-incompatible-changes
Since that release, there is no more socialaccount/base.html
. Instead, there is a distinction between 2 base templates, the entrance template (all that happens before authenticated), and the account management template. Try:
{% extends "socialaccount/base_manage.html" %}
from django-allauth.
I did, but that does not work out for me:
I found #3513, and tried both socialaccount/base_entrance.html
and socialaccount/base_manage.html, but that doesn't use my html (I override account/base.html).
Did I forget to create another template file that would extend my account/base.html?
from django-allauth.
There no longer is a account/base.html
either. I recommend you to have a look at the allauth templates. The connections page uses:
{% extends "socialaccount/base_manage.html" %}
That base_manage
uses:
{% extends "allauth/layouts/manage.html" %}
The account login.html
uses:
{% extends "account/base_entrance.html" %}
That base uses:
{% extends "allauth/layouts/entrance.html" %}
Meaning, if you want to provide your own base templates, put them in allauth/layouts/entrance|manage.html
.
from django-allauth.
oh, okay. And this is not documented in detail, I should just read code, right? Thank you and have a great evening.
from django-allauth.
The documentation is indeed lacking in this area, pull requests to improve them are welcome. Note that all this was done so that you can stop copying over the templates. See for example the included example project -- it applies bootstrap styling without overriding the templates at all. Demo up and running here: https://django.demo.allauth.org/
from django-allauth.
Related Issues (20)
- Setting SOCIALACCOUNT_ONLY = True results in template error when trying to perform a social login, "Reverse for 'account_signup' not found. 'account_signup' is not a valid view function or pattern name". HOT 4
- Still receiving save() prohited to prevent data loss due to unsaved related objec HOT 2
- Telegram views CallbackView 'bool' object has no attribute 'pop' HOT 2
- typo in comments 'cocunt' plugin HOT 1
- sociallogin.is_existing fails if existing user associated in adapter.new_user HOT 2
- Better template tags and files HOT 3
- Deprecated signature algorithm SAML HOT 2
- Account provider not listed/visible HOT 2
- Provider is not showing up in Django admin and getting ImproperlyConfigured error after setting up django-allauth HOT 4
- Headless mode: User delete cascade looking for authenticator model despite not using mfa app HOT 2
- django-allauth doesn't cater for app-only access yes? HOT 1
- socialaccount/adapter.py get_app throws MultipleObjectsReturned exception if more than one saml provider is configured HOT 5
- Typo in checks for SOCIALACCOUNT_ONLY HOT 1
- Headless `SessionView` for `APP` client creates an unnecessary session
- Allauth admin integration issues HOT 5
- admin page doesn't show social application providers HOT 6
- Slack needs 2 providers HOT 3
- How to prevent django.db.utils.IntegrityError for duplicate social login email? HOT 3
- Unable to understand how to authenticate SOCIALACCOUNT_ONLY flag as True HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-allauth.